I'm trying to implement a socket application for my very frist time. WHen I use:
IPHostEntry ipHostInfo = Dns.Resolve(Dns.GetHostName());
IPAddress ipAddress = ipHostInfo.AddressList[0];
IPEndPoint localEndPoint = new IPEndPoint(ipAddress, 11000);
the localEndPoint IPEndPoint contains "192.168.56.1", that is my address under my VirtualBox network. It should contain my local network ip ("192.168.1.165").
How can I manage it?
I looked over Google but I could find an answer sorry...