8/27/2021»»Friday

Find My External Ip

8/27/2021
    39 - Comments

How to Find Your Local and External IP Address

This is a beginner's guide to finding your local and external IP address on both Mac and Windows. The following script and scheduling works perfect in 6.x and works behind NAT / private ip. It will update dyn with your external IP. Make a script called: dynDNS.

At many times while fixing things related to your computers Network and Internet, IP address is the top notch information you might need. There are two types of IP address, Internal and External. It’s possible to find External IP address (or Internal) on a computer, Operating system is not a limitation here. So let me take you through the process. But first here is a brief information about both IP addresses, The Internal (or Local) IP address is how Local internet identifies your device. And External IP address is something the rest of Internet sees.

At many instances the local IP and the External IP are same for your device, and An IP address is assigned by the Internet service Provider and mostly are subject to keep changing unless you’ve got a Static IP address. An Local IP is mostly the ipv4 address and External IP address in most cases unless you’re using a VPN or similar services.

The Basic Google Search Method.

The number one and the easiest way to find your Local IP address is to Google it, when you ask google “What is my IP” a box will show you that. Via Google support check more google tricks here.

Google consistently working to help people directly from the search page. For example if you search “My Home” it will show the place you earlier marked as your home. It has nothing to do with this post, considering google’s usefulness It was necessary to mention.

How Do I Find My External Ip

Find IP on Windows Computer

The other workaround is to use the “Command Prompt” or the “Powershell” and type “ipconfig” command and look for the IPv4 Address, you’ll find the External IP address there.

Click on the start menu and search “cmd or command prompt/ powershell” or do a quick Ctrl+R > cmd/powershell.

No matter which version of Windows you’re running, there always will be Command prompt.

Take Help of Websites

There are many websites out there can help you finding your devices internal or external IP address. One such website is “What’s my IP Address” that you can visit to instantly find your computer’s IP address, and most of the time the ipv4 address is your likely to be your internal and external IP address.

Most of the site help you resulting your IP address along with Location (hopefully not accurate) and ISP name, etc.

But suppose if you’re running on Linux, or any other operating system, using google to determine your IP address is easy with just a Web browser. Most of the operating system comes with a pre-installed Web browser (without it computer would be like an Iphone without Apple). So use a Browser and either visit a site or simply search Google. However, only IP address will be shown in the google result box, to know other information use a site like “What’s my IP address” that’s all you need to know.

Article Contents

  • How to Find Your Local and External IP Address

What is My External IP all about?

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).

News / New Features

2016-07-10 Added: Show RIPE information about the IP number.
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.

Btw: Happy 2015!

2014-12-08 myexternalip.com in the wild

Here are some clever uses of myexternalip.com I've seen in the wild:

2014-12-04 Support for JSON / JSON-P

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

  • JSON: http://myexternalip.com/json
  • JSON-P: http://myexternalip.com/json?jsonp=yourCallback
2014-08-26 Flattr and throttle

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.

2014-03-11 Introducing access rate

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'

So, the new access rate for everyone is around 1/s.

And you, young fella at 118.175.31.x .. you are banned! :)

2013-09-29 activated IPv6

'My External IP' can be reached via IPv6 now as well.

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.

Looks like you are using IPv4.

2013-08-16 added 'My-External-Ip' header

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

Checkout some of the examples on how to make use of that feature

How to use My External IP - API

Find My External Ip Address

So, how to use this site in your environment (other than just surfing it with a browser)?

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.

API-Endpoints:

GET /raw

How To Find External Ip Address

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]

Here is a list of ideas to get you started:

  • BITS (Windows only)
  • Powershell 2.0 (Windows only)

CURL

to quote from the homepage of 'curl':

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.

HEAD

WGET

to quote from the homepage of 'wget':

GNU Wget is a free software package for retrieving files using HTTP, HTTPS and FTP, the most widely-used Internet protocols. It is a non-interactive commandline tool, so it may easily be called from scripts, cron jobs, terminals without X-Windows support, etc.

FETCH

to quote from the homepage of 'fetch':

fetch -- retrieve a file by Uniform Resource Locator

NETCAT

NETCAT

often cited as the 'Swiss Army Knife for TCP/IP' you can use netcat to obtain your external ip. this approach also works with netcat-alikes such as socat or even with telnet:

NETCAT, HEAD method

just like the regular netcat version, just ask the server to deliver just the HEAD-information

Microsoft Windows

Powershell

Powershell is the replacement for the 'old' cmd.exe, it is a builtin of the Windows OS since Windows7 and Windows Server 2008 R2. It is also available as an additional feature for WindowsXP, WindowsVista and Windows Server.

BITS

BITS stands for 'Background Intelligent Transfer Service', it is a builtin tool of the Windows OS.

Golang

Javascript

Get

NodeJS + request

Python

Python

Find my external ip cmd

Python with 'request', HEAD method

Ruby

Ruby One-Liner

Perl One-Liner

F#

Php

Common Lisp

How To See External Ip

Elixir - HTTPoison

Contact

If you wish to contact us, please mail to [email protected] Airtable reddit.