how to find out if the computer is on the network
I am developing a program in C/C++. I need to know if the current machine running the program is on the network. How can I use the program to find it out?
I had thought of using "ping certain_ip", but it means that ip must always be available. What is the reliable solution? Thank you for your help.