Re: How can a .net socket server listen to all the IPAddresses of

Tech-Archive recommends: Fix windows errors by optimizing your registry





"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.
.



Relevant Pages

  • Re: DHCP Server Failure
    ... I am going to try restarting the server tonight. ... DNS name resolution lookup requests return records ... Disable registration on the outside network adapter on the multihomed ... Remove Host record entries that refer to the domain controller''s ...
    (microsoft.public.windows.server.sbs)
  • RE: ISA
    ... the router and the local network through a single network adapter, ... ISA Server---| ... server has two network adapters, one is connected on one side with a public ...
    (microsoft.public.windows.server.sbs)
  • RE: Wireless Connectivity
    ... Not sure if this will help in your situation but I have had several wireless ... related issues resolved by reducing lease times on the DHCP server ... The system detected that network adapter \DEVICE ... The time provider NtpClient was unable to find a domain controller to ...
    (microsoft.public.windows.server.sbs)
  • Re: internet sharing
    ... have the 2nd network adapter communicate on the 192.168.0.1 IP range. ... gateway settings on the primary network adapter for these 3 workstations are ... Therefore it forces these computers to search for the internet via ... as a server providing DHCP & DNS. ...
    (microsoft.public.windowsxp.network_web)
  • Re: BeginRead & ThreadPool.QueueUserWorkItem
    ... BeginXXX method is more efficient than creating a thread and calling the ... What takes time when connecting to a server is not the processing that you ... the network adapter would have notified the Framework in some way ...
    (microsoft.public.dotnet.framework)