On my server, under advanced TCP/IP settings I have two IP addresses added.
My question is, how can I specify that I want to listen to the first or second IP? Is there a way to obtain all IP addresses on my machine via .NET and select one to listen to?
Any help would be appreciated. I hope my question is clear.
Thanks.
The
TCPListenerinSystem.Net.Socketsaccepts an IP and a port on construction:The full MSDN article is here and also look at the TCPClient