socket programming
-
How to find out ip address of a listening port.
-
How to find out ip address of a listening port.
lol what?
I know the human being and fish can coexist peacefully. -George Dubya Bush Don't believe me? http://politicalhumor.about.com/library/blbushism-fish.htm
-
lol what?
I know the human being and fish can coexist peacefully. -George Dubya Bush Don't believe me? http://politicalhumor.about.com/library/blbushism-fish.htm
TQ
-
How to find out ip address of a listening port.
I got this from a chat application here on codeproject, there are other ways. Try to download applications in the site. String GetIP() { String strHostName = Dns.GetHostName(); // Find host by name IPHostEntry iphostentry = Dns.GetHostByName(strHostName); // Grab the first IP addresses String IPStr = ""; foreach (IPAddress ipaddress in iphostentry.AddressList) { IPStr = ipaddress.ToString(); return IPStr; } return IPStr; } Good luck :-D