Get internet service provider or provider's IP adress?

Hello,

I want my arduino uno+ethernet shield to find my enternet service provider. (for a fast visual check to know if 3G or wired internet active)
Does anyone have an idea how to get the internet service provider name or IP adress of the service provider?

Thanx!

One way I can think of to get an idea of which ISP you are going through is to do a short traceroute. Basically a "ping" with a low Time To Live (hops). When the TTL runs out the machine your packet got to should return an error packet. The first machine will be your home router. The second or third machine will be your neighborhood router.

If you have a server under your control you can have it echo the IP address of clients that connect. That would be the most reliable way to determine the NAT-translated IP address of your client.

If you don't mind parsing HTML there are web pages that will display your IP address.

I think you can use "whois" utility, there are free on-line resources:

http://www.wipmania.com/

Not sure I understand the question, but maybe this can help: IP Address API.