Call: (480) 382-8464

How to Find Public IP Address from CLI

Often, an IP address is hidden behind a proxy or NAT. Here is how you can tell the public IP:

Using Curl to check Public IP:

curl -s|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'

Check Public IP with Curl

Using Telnet to check Public IP:

telnet 80 | grep confidence | grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}'

Check Public IP with Telnet

Using wget to check Public IP:

wget -O - -q

Find Public IP with wget

Using lynx to find Public IP Address:

wget -O - -q

Find Public IP with lynx

Leave a Reply

Your email address will not be published. Required fields are marked *

Main Offers/Services

Hosting and website related services offered by Digital Crunch:

Managed VPS Hosting

Server Updates, Module/Software Installs, Firewall, Security, Hosting Management, Wordpress - let us manage it for you

Hosted Email

Setup and Maintain Business Class, Secure Email Hosting including spam protection and 25GB of storage space

Linux Consulting

Server Updates, Module/Software Installs, Firewall, Security, Hosting, Wordpress and Apps, anything related to Linux

Email Marketing Services

We broadcast your content to your list, capture leads for you, follow up on schedules, make more sales for you

Website Maintenance

Content updates, menu changes, graphics changes, adding content, getting links, building traffic, building sales funnels

Hosting Tutorials

Tutorials we've written for other customers that like to get their hands dirty and learn about hosting