Assuming that all of the code is done for setting up Winsock is done, how would you check if a given ip is active/online?
Thanks
-Chris
This is a discussion on Winsock Question within the C++ Programming forums, part of the General Programming Boards category; Assuming that all of the code is done for setting up Winsock is done, how would you check if a ...
Assuming that all of the code is done for setting up Winsock is done, how would you check if a given ip is active/online?
Thanks
-Chris
Please direct all complaints regarding this post to the nearest brick wallHave a nice day.
ping? pong!
Send junk data to the pingport of the remove computer, if you get response the ip is active. Also, if you do a connect try, and get an error as result, the ip isn't active. This could be a problem though, because the connect must time out before it can determin that the ip wasn't active (or it could have been, but just doesn't accept connection on thar port). So ping is the way to go.