0
Thanks

A few words of thanks would be greatly appreciated.

Get your Public IP address with wget in Ubuntu


Get your Public IP address with wget in Ubuntu





With this command line you can easily recover your Public IP address.You can then use it in scripts such as to make sure you are using a VPN connection.

$ Wget-qO-icanhazip.com


A little explanation is needed:
The wget command is a free download manager. it is from the GNU project, it allows downloading files on advanced networks and the Internet. For example, it can create mirror sites, or perform recursive downloads. Its name comes from World Wide Web and GET is the command name used in the HTTP protocol to retrieve a file. It is able to communicate with the HTTP and FTP. (Source Wikipedia)

Wget command syntax is relatively simple:
wget [option] [URL]


For more information write:
$ Man wget
0
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
This document, titled « Get your Public IP address with wget in Ubuntu », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).

0 Comments