Jump to content

List IP addresses, copy to clipboard

Recommended Posts

Nice one – ipconfig rather unhelpfully doesn't return external IP address, so the easiest way to get what your current external IP address (as an IPv4) is to parse the curl output from a site that'll tell you.


It's fairly easy to do this via a shell script:


exip=$(curl -s http://ipecho.net/plain)
echo "$exip"


Hope that helps!

Edited by CapnAverage
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...