Find your own IP address: IPv4 and IPv6
Public and private address, in the browser and on the command line, and why your IPv6 address changes.
"What is my IP?" has two answers: the address you use on the internet, and the address of your device in your home network. Here you will find both, for IPv4 and IPv6, in the browser and on the command line.
Public or private?
- Public address: websites and servers see you with it. With IPv4, all devices at home usually share one.
- Private address: only valid in your home network, for example
192.168.178.20or10.0.0.5. It cannot be reached from outside.
With IPv6, every device has its own public address. In addition there is an address starting with fe80:. It is only valid in the local network and cannot be used for connections to the outside.
In the browser
The quickest way is What is my IP. The page shows your public IPv4 and IPv6 address separately, plus the reverse DNS name if there is one. If the IPv6 address is missing, your connection or device currently has no IPv6.
On the command line
Public address, separately for IPv4 and IPv6:
curl https://ip4.trynxt.com
curl https://ip6.trynxt.com
This works on Linux, macOS and in Windows PowerShell (write curl.exe there).
Addresses on your own device:
- Windows:
ipconfig - Linux:
ip -br addr - macOS:
ifconfig | grep inet
Why does my IPv6 address change?
Many devices create a random "privacy" address in addition to the fixed one and change it regularly. They use it for outgoing connections. For a service that should be reachable, use the fixed address that ipconfig or ip addr shows without the note temporary.
The IPv4 address at home also changes now and then with many providers, for example after a forced reconnect. If you want to be reachable at home permanently, you need dynamic DNS.
Where does an address come from?
With IP info you can see for any address which network and provider it belongs to and roughly where it is located. The blacklist check shows whether an address is on a spam block list.
The address of your server
For a server at TryNxt the addresses are in the customer area: open the server, tab Network. There you see the IPv4 address and, if booked, your own IPv6 network. How to add IPv6 is described in Add IPv6 to your server and test it.
For the community
Know your stuff? Write a guide.
Share what you know: we review every submitted guide, publish it under your name and say thank you with credit for your services.