Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

1 Answer

up vote 0 down vote accepted

To get the public IP from the console use curl

curl -s http://whatismyip.org/

or

curl -s checkip.dyndns.org|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
add comment

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