People sometimes need to know their local or external IP for different reasons such as troubleshooting network problems or understanding how the internet works.
But before explaining you how to find your local and external IP addresses i need to explain you first what does this IP address thing really means.
So an IP address is basically a code of numbers that identifies your device (whether it’s a computer/mobile phone/tablet) in a network.
There is different type of networks, so depending of the network you are talking about you might refer to your local IP (the one you would get by your own router to identify your device or devices on your local network) or a external IP. (the one that your router uses to identify himself and all the devices on his network to the outside Internet)
So, if you wanna find out the local IP of the device you are currently using, you can use 2 different commands depending of the Operative System you are using.
If you are using Windows, you need to open the CMD (you can write it on the Windows search bar on the left bottom of the screen) and write ipconfig
A lot of information will appear but the one that you are probably looking for is the IPv4 address.
Usually you will get an IP similar to this: 192.168.1.34 (it doesn’t have to be like this but it should be slightly similar at least)
Now, if you are using Linux, you need to open the Terminal and write “curl ifconfig.me” and you should look for the code after the “inet addr”. If you are connected via cable you should look for an interface called “eth0” and if you have a wireless connection you should look for an interface most likely called “wlan0”.
And for finding your external IP, it’s very simple. There are different websites that will give you your external IP, i recommend using this one but many other works as well: https://www.iplocation.net/find-ip-address
Also, for security reasons, you shouldn’t ever give your external IP to any untrusted source.