Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Finding the Public IP address in a shell script

I'm trying to problem solve a network Connection for a customer, and have to do a speed test on the network from Our Linux console. I'm not sure how I'll get the right WAN address.

I have the gw of the router, and the ip of the network for the ISP. Is it one of these ip that I should take a traceroute on?

Thanks :)

share|improve this question

marked as duplicate by Michael Hampton, growse, TheCleaner, kce, mdpc Jan 16 '13 at 18:30

This question was marked as an exact duplicate of an existing question.

up vote 0 down vote accepted

To get the public IP from the console use curl

curl -s


curl -s|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'

To test the speed of your connection just download an ISO file from a random website.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.