Hey guys,

I am currently living in a student house with 5 computers connected to a wireless router.

I was wondering, then, what IP address the IPAddress.Any method would return in VB.Net, as I am trying to set up a TcpListener using it.

Here is what I am trying to do: I want the TcpListener to start listening on the host computer port 3001 as soon as my VS programme starts. As far as I am aware, a TcpListener can only run on an internal IP, but I am not 100% sure how to get the internal IP of the host computer as I don't want to hard-code it so that the application will work on any computer that it is run on.

Is IPAddress.Any the right thing to use? If not, what is a better way of doing this?

Thanks,
K