{"id":400,"date":"2018-01-07T04:52:21","date_gmt":"2018-01-07T04:52:21","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=400"},"modified":"2018-01-07T04:52:21","modified_gmt":"2018-01-07T04:52:21","slug":"quick-tip-how-to-view-public-ip-using-ssh-terminal-curl-wget","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/quick-tip-how-to-view-public-ip-using-ssh-terminal-curl-wget.html","title":{"rendered":"Quick Tip: How to view public IP using SSH terminal\/cURL\/wget"},"content":{"rendered":"<p>There are times when you might require to view the IP address your server is using for outgoing connections. If you are in command line\/console\/mosh\/ssh\/rsh, you want an one command solution instead of visiting a page like whatismyip.com using lynx browser or so on. Here is a quick tip that I regularly use to perform this:<\/p>\n<p><strong>Using cURL:<\/strong><\/p>\n<p><code>curl ifconfig.co<\/code><\/p>\n<p><strong>Using wget:<\/strong><\/p>\n<p><code>wget -qO- ifconfig.co<\/code><\/p>\n<p>ifconfig.co does it simple and easy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are times when you might require to view the IP address your server is using for outgoing connections. If you are in command line\/console\/mosh\/ssh\/rsh, you want an one command solution instead of visiting a page like whatismyip.com using lynx browser or so on. Here is a quick tip that I regularly use to perform &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/quick-tip-how-to-view-public-ip-using-ssh-terminal-curl-wget.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Quick Tip: How to view public IP using SSH terminal\/cURL\/wget&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[144,12,21,150,25],"tags":[215,216,217],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/400"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=400"}],"version-history":[{"count":1,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/400\/revisions"}],"predecessor-version":[{"id":401,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/400\/revisions\/401"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}