Getting List of IP'Address
-
Hi, i have created one Chat application where user can send message to other users on the network but right now i am specifying the ip address manually. So,i want to get Ip asdress of all the machines which are on network. Pls send me the code if u know this. Girish
-
Hi, i have created one Chat application where user can send message to other users on the network but right now i am specifying the ip address manually. So,i want to get Ip asdress of all the machines which are on network. Pls send me the code if u know this. Girish
There's no way to get the list, other than pinging each IP address in the range you want. Even then, that won't get you a list of available clients. You have to try to connect to each of the live IP address to see if a client is listening. This process will take quite a long time to get through any list of addresses. A better solution would be to have a central server that all the clients check into. This server would then be able to share the known available clients list with all the other clients.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
There's no way to get the list, other than pinging each IP address in the range you want. Even then, that won't get you a list of available clients. You have to try to connect to each of the live IP address to see if a client is listening. This process will take quite a long time to get through any list of addresses. A better solution would be to have a central server that all the clients check into. This server would then be able to share the known available clients list with all the other clients.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007thanks for ur reply.