Paul Pepper Logo
Paul Pepper icon
  • Home
  • About
  • Blog

Get NAT Public IP

Posted by Paul on 16th March 2012

Neat use of wget to get the IP of the public-facing interface from behind a NAT:

$ wget -O - -q icanhazip.com

There are other alternatives to icanhazip.com, such as canihazip.com/s.

Tags: NAT
  • Recent Articles

    • HTTPS with Letsencrypt on nginx
    • WordPress Development Environment
    • AngularJS Providers, Factories and Services
    • Preserve the Shell Environment Using sudo
    • Locating Django Applications in Their Own Sub-Directory
    • Django, X-SendFile and Apache
    • Set up git and gitosis on Ubuntu
    • Overusing Software Reuse
    • Setting date and time on Debian and Ubuntu
    • Installing pip, virtualenv and virtualenvwrapper
  • Article Tags

    AngularJS apache Bash blog bugs database Django git HTTP HTTPS IDE Java JavaScript Linux NAT nginx Object Orientation PHP PVR python quality REST security shell script software design software license subversion Ubuntu version control web services WordPress

Get in touch

Copyright © 2017 Paul Pepper, all rights reserved. Website by getpepper™.