Reputation: 47
Currently making a vb.net program to communicate a string between two computers. My test bed is a Windows 8 machine connecting to a windows 7 VM. However, despite numerous measures, I still continue getting this error on the development machine side. Here is what I've done/enabled so far.
I've been racking my brain and can't seem to think of anything else I haven't tried at this point.
Is there anything I'm missing? I suspect it's something really obvious.
Thanks for any help you can give.
Edit: Here is how I've configured the block for the host machine(the vm in this scenario). It was taken from someone's c# version from a blog.
Dim LocalHostName As String = Dns.GetHostName()
Dim LocalHostIPEntry As IPHostEntry = Dns.GetHostEntry(LocalHostName)
Dim LocalHostIP As IPAddress = LocalHostIPEntry.AddressList(0)
Dim LocalIPEndPointAnyIP As IPEndPoint = New IPEndPoint(LocalHostIP, _Port)
Upvotes: 1
Views: 998
Reputation: 84151
You are most likely binding to and listening on a loopback interface. Use IPAddress.Any
instead of LocalHostIP
to accept connections on any interface.
Upvotes: 1