searching peers using winsock
-
Hello all, i have very specific question regarding winsock "In a network of PC's, i want to find the ip addresses of all the nodes that are running my custom made windows service" How to achieve this. Service is made in C++ using win32 api's and i m using winsock for all networking purposes thanks kunal s patel
-
Hello all, i have very specific question regarding winsock "In a network of PC's, i want to find the ip addresses of all the nodes that are running my custom made windows service" How to achieve this. Service is made in C++ using win32 api's and i m using winsock for all networking purposes thanks kunal s patel
Hi, I dont know what is your windows service doing. But I have an idea. You can take care of this. The idea is that your windows service program should populate a broadcast message in your network for every time intervals. In that broadcast message you can specify your default message that includes ip address, etc., In your winsock program , you could receive that default message. The default message might have an IP address of the host machine. Using this you can achive your way.
-
Hi, I dont know what is your windows service doing. But I have an idea. You can take care of this. The idea is that your windows service program should populate a broadcast message in your network for every time intervals. In that broadcast message you can specify your default message that includes ip address, etc., In your winsock program , you could receive that default message. The default message might have an IP address of the host machine. Using this you can achive your way.
Thanks for the fast reply. Can any one please suggest me how to broadcast a packet in network. What care should i take in sender side and receiver side. A sample code would be of great help thanks kunal s patel