Back to posts

Getting source IP from command line

linuxnetworkingcli

There are many ways to retrieve source IP from your box you are ssh in, but below command is the most concise way to retrieve the source IP:

curl ipinfo.io/ip

Reference

Command for determining my public IP - Ask Ubuntu