Linux / C++: Get Internet IP Address (not local computer's IP)
- by Levo
How can I programmatically get the Internet IP address?
1) If the computer is directly connected to the Internet using a USB modem.
2) If the computer is connected to the internet via another computer or a modem/router.
I there a way to do both?
P.S. This link gives exactly the Internet IP, but how can I use it in my program?