Monthly Archives: July 2014

How to get the external public IP via ssh port forwarding

ssh -T -L 7080:ipecho.net:80 <production machine alias> : there is a server listening on port 7080 locally forwarding the traffic to ipecho.net:80. curl -H “host:ipecho.net” http://localhost:7080/plain; echo “ipecho.net can be replaced with ifconfig.me etc.

Posted in Uncategorized | Leave a comment