An Internet Protocol address, or IP address as it is commonly known, is a unique identification number assigned to a computer connected to a network. There are several ways users can retrieve their publicIP addresses. One can use Shell script to know about their public IP address. There are Shell commands which can get the job done. One of them is the GET command which shows the source code of the page. The other option is to use Lynx. Otherwise users can use the Sed command to display their IP address.