Back to the How-To List
Finding your external IP address (without using a bounce site)
You need to find your external (Internet) IP address, but you don't want to have to contact a remote site to send your IP back to you. You can't use the ever-popular Windows-based IP checkers, because they just report your internal (LAN) IP address.
Create a simple shell script that retrieves the information.
Login to your Freesco box as root (via telnet).
If you're using Freesco v0.2.7, type:
If you're using Freesco v0.3.0, type:
Now, type the following:
Next, you need to make the script executable. Type:
Now, to test it out, just type:
And your IP should be displayed. In future, any time you need to check your IP, just login and type
You might also want to check out our CGI shell script article - then you can look up your IP from the comfort of your web browser (rather than telnetting into your router).