473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

only one usage of each socket address is normally permitted?

I have an app that binds to 5003 and 5004. It works fine on a desktop
VS2005/sp1 dotnet 2. It will not run on a laptop VS2005/sp1 dotnet 2 giving
the above error on the very first bind.

I cannot spot what is causing the problem. There is something different
about the laptop no? Both system have xp, sp2 with latest patches and
firewall off. The program should behave the same. I start guessing and
disable spampal, snagit, whatever I can think of but I still cant bind nor
see what is causing the program to fail.

I set a breakpoint at the first bind and examine thecontents of
"audioEndPoint" and sure enough something is different. On the desktop I
see "m_address" and "m_port" listed in the watch window. They are missing
in the laptop but if I expand [+]Non-Public members then I see those two
variables. I would think that since both VS2005 with SP1 and DX90SDK (same
december) one would see the exact layout on each. I do not see the
corresponding [+]Public Members but both system do show [+]Static members.
Maybe that is not significent.

Could port 5002 and 5003 be un-available on my laptop?

The desktop is on a "domain" but the laptop isnt. Could this be a security
policy problem? If anything, I would think that the desktop beiing on a
domain might have a more restrictive security policy. FWIW, the laptop has
wireless.

--
================================================== =====================
Joseph "Beemer Biker" Stateson
http://ResearchRiders.org Ask about my 99'R1100RT
================================================== =====================
Jan 18 '07 #1
2 13659

Hi,

Before running program ensure that ports are free.

Run -type: cmd -enter
you see command prompt
type:
netstat /a

you see all ports used.
"Beemer Biker" <js*******@swri.eduwrote in message
news:12*************@corp.supernews.com...
>I have an app that binds to 5003 and 5004. It works fine on a desktop
VS2005/sp1 dotnet 2. It will not run on a laptop VS2005/sp1 dotnet 2
giving the above error on the very first bind.

I cannot spot what is causing the problem. There is something different
about the laptop no? Both system have xp, sp2 with latest patches and
firewall off. The program should behave the same. I start guessing and
disable spampal, snagit, whatever I can think of but I still cant bind nor
see what is causing the program to fail.

I set a breakpoint at the first bind and examine thecontents of
"audioEndPoint" and sure enough something is different. On the desktop I
see "m_address" and "m_port" listed in the watch window. They are missing
in the laptop but if I expand [+]Non-Public members then I see those two
variables. I would think that since both VS2005 with SP1 and DX90SDK
(same december) one would see the exact layout on each. I do not see the
corresponding [+]Public Members but both system do show [+]Static members.
Maybe that is not significent.

Could port 5002 and 5003 be un-available on my laptop?

The desktop is on a "domain" but the laptop isnt. Could this be a
security policy problem? If anything, I would think that the desktop
beiing on a domain might have a more restrictive security policy. FWIW,
the laptop has wireless.

--
================================================== =====================
Joseph "Beemer Biker" Stateson
http://ResearchRiders.org Ask about my 99'R1100RT
================================================== =====================

Jan 18 '07 #2
"Ivar Lumi" <iv**@lumisoft.eewrote in message
news:eO**************@TK2MSFTNGP06.phx.gbl...
>
Hi,

Before running program ensure that ports are free.

Run -type: cmd -enter
you see command prompt
type:
netstat /a

you see all ports used.
Thanks, I was unaware that netstat had all those options. By the time I
read your suggestion, it was all working. I cannot account for this
except that the laptop was shutdown and started back up. There were some
pending security updates that required a reboot and when it booted up I no
longer got that message when I ran my program. Sometimes exiting the
debugger without closing the debugged program can cause problems. It is
clear that 5003 and 5004 are released when the program exits and I was able
to verify that using netstat -p. Maybe they were not release when the
debugger terminated the progam? Maybe I just had to do a periodic reboot
like that mac/windows commercial on TV ;-)
--
================================================== =====================
Joseph "Beemer Biker" Stateson
http://ResearchRiders.org Ask about my 99'R1100RT
================================================== =====================

Jan 18 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Daniel | last post by:
after opening socket, sending data then closing socket 3000 times i get "Only one usage of each socket address" what am i doing wrong? is there some thing else i need to do to free up the socket...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
1
by: Jerome Symons | last post by:
Hi everyone, I have developed a C# client/server system that creates bitmap images at the server and sends them to the client as an array of bytes using a Socket. When the data rate through...
2
by: Rene Sørensen | last post by:
We are 4 students working on a assignment, that our teacher gave use, normally we do this is C++, but the 4 of us, use C# more often that C++ so… We made a small games called reversi, now our job...
4
by: News | last post by:
Hi Everyone, The attached code creates client connections to websphere queue managers and then processes an inquiry against them. The program functions when it gets options from the command...
0
by: jkhan | last post by:
Hi! I have problem which I shown in title and below as well. I have a Form name as Cancelation. The clientThread2() method is called on Form Load if I Close the Form and want to reload then the...
1
by: =?Utf-8?B?Um9kcmlnbyBHYXJjw61h?= | last post by:
I have a client making web service calls to a NLB cluster. When the cluster was comprised by two machines everything went fine serving near two hundred service requests per second. Now I increased...
0
by: Johan | last post by:
Suppose: There are two devices on my network that both broadcast UDP datagrams (and they both use the same portnumber 1234). I want to create two executables that use UdpClient internally. Each...
9
by: pbd22 | last post by:
Hi. I am getting the below error: Event Type: Error Event Source: PeskyService Event Category: None Event ID: 0 Date: 1/30/2008 Time: 5:49:10 PM User: N/A
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.