Answers

Nov 02, 2009 - 10:40 AM

Nov 02, 2009 - 10:27 PM
I am trying to get IP's and associated User Name so that i can display them on my chat messanger...but i am not maintaining user database and am using udp protocol for data exchange using C#
Whenever tool is run it asks for temporary user name and associates it with the System IP.Then common chat room is displayed where in we can see all connected Users(with temp user names and there system IP's).
I need help to get these list of users on each connected system so that every user can see users available on LAN.
i tried following code
IPAddress[] ips = Dns.GetHostAddresses(Dns.GetHostName());
but of no use..
Please Help

Nov 03, 2009 - 03:35 AM

Nov 03, 2009 - 04:57 AM

Nov 03, 2009 - 06:28 AM
Thanks for your response again.
Right now I am entering IP in text box manually ... how to get System IP of the same machine in textbox..Please provide the required code,if possible, to automatically get current system ip in textbox

Nov 03, 2009 - 06:39 AM
IPHostEntry ipEntry = DNS.GetHostByName(strHostName);
IPAddress[] addresses = ipEntry.AddressList;

Nov 03, 2009 - 08:03 AM

Nov 03, 2009 - 08:04 AM
Add New Comment