Get a new external ip



Keywords: get a new external ip
Description: Every device connected to a network which uses the Internet Protocol has an unique IP address assigned to it. The global pool of such interconnected networks is known the internet. Sometimes,

Every device connected to a network which uses the Internet Protocol has an unique IP address assigned to it. The global pool of such interconnected networks is known the internet.

Sometimes, when looking at it from the outside of the network, the IP address of a device seems to be different from the one assigned in the original (sub)network. This is due some mechanisms such as NAT.

My External IP displays the IP address of the device as it seems from the outside (hence external ).

2015-10-30 Added: FreeBSD fetch sample. 2015-08-03 Added: AutoHotkey sample. 2015-02-23 Added: Erlang and Elixir samples 2015-01-07 Enabled: ipv4.myexternalip.com and ipv6.myexternalip.com.

I switched on ipv4.myexternalip.com which answers only to requests coming in via IPv4. ipv6.myexternalip.com will do the same for IPv6. This might come in handy when you test your setup or toy around with IPv6.

I added support for JSON / JSON-P to make retrieving the IP via Javascript a little bit easier. There are two options:

Flattr: I created a flattr-account and start accepting donations (small, big, does not matter). If you want to donate by other means: contact me.

Throttle: some folks out there have either running curl in a while-loop or a crazy understanding of how often their external ip changes or they need some tool to help keeping a line busy. Whatever the case might be: 20+ requests / second is way too often and thus I decided to throttle the answer a little bit. The good folks among you won't hardly notice it at all, the. strange. folks might.

Usually this service runs very low profile and without much handholding. Recently I watched at the load and then on some logs and on some more logs and on some tcpdumps: One machine out there wanted to know it's IP at the rate of

100 times a second. Heart-warming. Especially when the IP does not change at all. And especially when the user agent looks like "/tmp/.botc3 / 82d7f55ef6a49ab4e49d89caa5ea10ba"

With IPv6 the whole NATting is kind of pointless and most devices will have a 'real' IP address with IPv6 but you still can use myexternalip.com to check if your network works as expected.

Whenever you HEAD http://myexternalip.com, you will find your IP will be there (hint: in the 'my-external-ip' header)!

Rate limit: if you exceed the rate limit of 30 requests/minute, you will receive status code 429 If you continue to exceed that limit and start to annoy me you will get banned at the IP filter level. Sorry, but I do not see the need to retrieve the IP more than maybe once every minute, 30 requests per minute is good will on my behalf.

HEAD / Header['My-External-Ip'] GET /raw Plain IP address GET /json IP address in JSON format GET /json?jsonp=callback IP address as JSONP-ready script ("function call"). 'callback' must fit the following constraints:
  1. Max-length: 64
  2. Begins with [_a-zA-Z]
  3. Continues with [_a-zA-Z0-9]

curl is a command line tool for transferring data with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS, FILE, IMAP, SMTP, POP3, RTMP and RTSP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos. ), file transfer resume, proxy tunneling and a busload of other useful tricks.






Photogallery Get a new external ip:


Check Point R75 Creating Rules NAT and PAT


11450 | Ace Fekay


Playground for the mind


Get your site ready for new Penguin 2.0 algo update!


image027.png


Configuring virtual networking for Microsoft Hyper-V


Connecting two Macs using Thunderbolt | Macworld


Tom Fojta's Blog | About virtualization, cloud computing and ...


TravelingPacket - A blog of network musings


Windows-Live-Writer-dcdcc495aa ...


How to launch your first vulnerability scan | Qualys Community


Beecon - FAQ


3.png


Configuring Exchange 2013 SP1 to Accept AD FS Claims ...


Wi Fi Module ESP8266  4.Control from anywhere in the World ...


Connecting to the Raspberry PI from the outside world  Everyday ...


Wi Fi Module ESP8266  4.Control from anywhere in the World ...


From the Bloggers Bench: Relay vCenter Alert Emails Externally ...


Configuring Exchange 2013 SP1 to Accept AD FS Claims ...


How to: Windows 7 incoming VPN from Android  Damian Mehers' Blog


How to launch your first vulnerability scan | Qualys Community