Re: How can a .net socket server listen to all the IPAddresses of
- From: Lokanath Chhatria <LokanathChhatria@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 10 May 2009 22:14:01 -0700
"Peter Duniho" wrote:
On Sat, 09 May 2009 04:47:01 -0700, Lokanath Chhatria
<LokanathChhatria@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
[...]
IPEndPoint localEndPoint = new IPEndPoint(hostaddress,
socketInfo.SourcePort);
to
IPEndPoint localEndPoint = new IPEndPoint(IPAddress.Any,
socketInfo.SourcePort);
As "IPAddress.Any" would listen to both the IP Addresses for the given
port.
But this did not work.
It should. If the rest of the code is otherwise correct and it doesn't
work with IPAddress.Any, you have a configuration problem.
Thanks for the reply..The rest of the code is fine and error free I beleive,
How should I detect a configuration problem?
The socket server program is running on Windows Server 2003 with 2 network
adapters, the ip address information for the two adapters is
1st network adapter:
IP Address ------- 10.0.30.6
Subnet mask ------255.0.0.0
Default Gateway---10.0.30.2
2nd network adapter:
IP Address -------- 192.168.112.142
Subnet mask ----- 255.255.255.0
Default Gateway ---192.168.112.2
The socket client program is running on Windows XP machine with the IP
Address:
IP Address ------ 10.0.30.10
Subnet mast ----255.0.0.0
Default Gateway--10.0.30.2
The client program gets to connect to the server when the server listens to
10.0.30.6, but if server listens to 192.168.112.142, the client doesn;t
connect.
Even when I have put IPAddress.Any, it doesn't seem to be working for
192.168.112.142.
Kindly help.
.
- Follow-Ups:
- Re: How can a .net socket server listen to all the IPAddresses of
- From: Peter Duniho
- Re: How can a .net socket server listen to all the IPAddresses of
- References:
- How can a .net socket server listen to all the IPAddresses of serv
- From: Lokanath Chhatria
- Re: How can a .net socket server listen to all the IPAddresses of serv
- From: Peter Duniho
- How can a .net socket server listen to all the IPAddresses of serv
- Prev by Date: RE: WCF Security Issue
- Next by Date: Re: How can a .net socket server listen to all the IPAddresses of
- Previous by thread: Re: How can a .net socket server listen to all the IPAddresses of serv
- Next by thread: Re: How can a .net socket server listen to all the IPAddresses of
- Index(es):
Relevant Pages
|