To get your public IP address from the command line (the reason why I wrote this): 1) No curl?
curl in.je/ip
This interface can also be used for different response formats and uses:
curl in.je/ip/bin | https://in.je/ip/bin | - Binary string (0's and 1's) |
curl in.je/ip/binary | https://in.je/ip/binary | - Binary |
curl in.je/ip/dns | https://in.je/ip/dns | - DNS hostname lookup |
curl in.je/ip/geo | https://in.je/ip/geo | - Geographical information |
curl in.je/ip/geojson | https://in.je/ip/geojson | - Geographical information (JSON) |
curl in.je/ip/hex | https://in.je/ip/hex | - Hexadecimal string |
curl in.je/ip/html | https://in.je/ip/html | - HTML |
curl in.je/ip/int | https://in.je/ip/int | - Integer |
curl in.je/ip/js | https://in.je/ip/js | - Javascript |
curl in.je/ip/json | https://in.je/ip/json | - JSON |
curl in.je/ip/long | https://in.je/ip/long | - Long integer unsigned |
curl in.je/ip/php | https://in.je/ip/php | - PHP |
curl in.je/ip/rdns | https://in.je/ip/rdns | - rDNS reverse DNS lookup |
curl in.je/ip/sh | https://in.je/ip/sh | - Shell script |
curl in.je/ip/soap | https://in.je/ip/soap | - SOAP (WSDL) |
curl in.je/ip/text | https://in.je/ip/text | - Text |
curl in.je/ip/xml | https://in.je/ip/xml | - XML |
curl in.je/ip/xmlrpc | https://in.je/ip/xmlrpc | - XML-RPC |
If you have any other suggestions, please send them to ip@in.je.
1 If you don't have curl, you can use for example: wget -qO - in.je/ip
© 2017-2020 by PHPfreelancer.nl with