To find your Linux Mint computer’s local IP address, open Terminal and run hostname -I; the address will usually look like 192.168.x.x or 10.x.x.x. For a more detailed view, use ip addr or open the network connection’s details in Mint’s desktop settings; to find your public internet address, check an external IP lookup service instead.
Local IP and public IP are different
The phrase “my IP address” can mean two different things. A local, or private, IP address identifies your device on a home, office, or other local network. Your router assigns it so devices can exchange traffic with one another and reach the internet. Common private IPv4 ranges include addresses beginning with 192.168, 10, or 172.16 through 172.31.
Your public IP address is the address that an internet service can see for your connection. Often, a router or internet provider uses one public address for several devices, while the router gives each device its own local address. This is why a website that reports your IP may show a different address from the one printed by hostname -I.
For tasks such as connecting to a printer, sharing files on the same network, or checking a router’s device list, you usually need the local address. For checking what websites see, you need the public address. Remote access from outside your network may involve both, along with router or VPN configuration.
Get the address quickly in Terminal
Open Terminal from the Mint menu or use the usual keyboard shortcut, then enter:
hostname -I
The command prints the IP addresses assigned to the computer, separated by spaces. On a typical home network it may return one IPv4 address, such as 192.168.1.42. If the computer has more than one active network connection, it may print several addresses. It can also show an IPv6 address, depending on your network and system configuration.
This is a convenient first check, but it does not label each result with its network interface. If you need to know whether an address belongs to Wi-Fi, Ethernet, a VPN, or a virtual network, use the more detailed command below. Also note that hostname -I uses a capital letter I, not a lowercase L.
To print the computer’s hostname alongside its addresses, you can run hostname and hostname -I as separate commands. These commands only display information; they do not change your network settings.
See interfaces and addresses with ip
For an interface-by-interface report, run:
ip addr
The output is grouped by network interface. Look for names such as wlp2s0 or wlan0 for Wi-Fi, and enp3s0 or eth0 for wired Ethernet. The exact names vary between computers. The loopback interface, usually called lo, is for communication within the computer itself; its 127.0.0.1 address is not the address other devices use to reach your Mint machine.
Under the relevant interface, an IPv4 address appears after inet, while an IPv6 address appears after inet6. For example, inet 192.168.1.42/24 means the interface has IPv4 address 192.168.1.42. The /24 is a network prefix length, not part of the address you would normally type into a browser or device connection field.
You can narrow the output with ip -4 addr for IPv4 or ip -6 addr for IPv6. To check the route Linux will use to reach the internet, run ip route. The line beginning with default via usually identifies the local router’s address; that is the gateway, not your computer’s IP address.
Find the IP in Linux Mint’s desktop settings
If you prefer a graphical method, use the network indicator in the panel or open the system settings and choose the network section. The exact labels and layout can differ across Linux Mint editions and releases, but the general process is the same:
- Connect to the Wi-Fi network or plug in the Ethernet cable you want to inspect.
- Open the network menu or network settings.
- Select the active connection and open its details, information, or settings page.
- Look for an IPv4 address or IPv6 address in the connection information.
In Cinnamon, the network applet provides access to available connections, and the system’s network settings provide connection details and configuration. Menu names may vary slightly in MATE or Xfce editions. If you cannot find the address in the visible panel menu, searching the Mint menu for “Network” is a reliable way to locate the settings application.
The graphical view is useful when you want to confirm which saved Wi-Fi network is active or inspect a connection without copying terminal output. It may show additional fields such as the gateway, DNS servers, and connection method. Do not mistake the gateway or DNS address for the computer’s own IP: the field explicitly labeled IPv4 or IPv6 address is the one assigned to the device.
Choose the right interface and address
A computer can have several network interfaces at once. A laptop might be connected to Wi-Fi while also having a VPN, a USB Ethernet adapter, a virtual machine bridge, or a container network. Each interface can have its own address, so “the IP” is not always a single value.
Match the address to the connection the other device will use. If a phone and computer are on the same home Wi-Fi, select the Wi-Fi interface’s local address. If the computer is plugged into a router by cable, use the Ethernet interface’s address. An address on a virtual interface may only work for traffic inside a virtual machine or container setup.
To see which interface is being used for a particular destination, try ip route get 1.1.1.1. The output identifies the selected route and usually includes a dev interface name and a src source address. This is a useful clue when the machine has multiple connections, though routing rules, VPNs, and specialized network setups can affect the result.
Understand IPv4, IPv6, and temporary addresses
IPv4 addresses are the familiar dotted numbers, such as 192.168.1.42. IPv6 addresses are longer and use hexadecimal characters separated by colons, for example 2001:db8::25. The example uses a documentation-only range; real addresses will differ. A network may provide IPv4, IPv6, or both, so seeing more than one address does not automatically indicate a problem.
Linux can also display IPv6 link-local addresses, which commonly begin with fe80:. These are meant for communication on the local network segment and are not generally interchangeable with a globally reachable IPv6 address. Some IPv6 addresses are temporary privacy addresses that can change over time. For most everyday local-network tasks, use the address appropriate to the other device and connection, rather than assuming every listed address is usable everywhere.
If an application asks specifically for IPv4, use the IPv4 entry or run ip -4 addr. If it supports IPv6, the application may need the IPv6 address in the format it expects. A link-local IPv6 address may also require an interface identifier when used in some tools, which is one reason IPv4 can be simpler for basic home-network troubleshooting.
Check your public internet IP
To see the public address websites can observe, open a browser and search for “what is my IP address,” or use a reputable IP-checking website. In Terminal, a command-line HTTP client such as curl can ask an external service to report the address it sees. For example, if curl is installed, you can run curl -4 https://icanhazip.com to request an IPv4 result, or curl -6 https://icanhazip.com to request IPv6. These commands contact an outside service, so they are different from commands that inspect local interface settings.
The result may not match the address shown in Mint because the router commonly performs network address translation. Your internet provider may also use carrier-grade NAT, where multiple customers share a public IPv4 address. A VPN can change the public address seen by websites while it is connected; depending on its settings, IPv4 and IPv6 traffic may take different routes.
A public IP lookup does not reveal your exact street address. It can often suggest an internet provider and a broad geographic area, but location results are estimates and may be inaccurate. Treat public-IP lookup results as network information, not precise location tracking.
Dynamic addresses, DHCP, and fixed addresses
Most Mint installations receive a local address automatically using DHCP, usually from the router. The address can remain the same for a long time, but it is not necessarily permanent. It may change after a router restart, a lease renewal, a network change, or a device reconnect. A public address can also change, depending on the internet provider and service plan.
If another device needs to reach your Mint computer reliably, first consider creating a DHCP reservation in the router. A reservation tells the router to offer the same local address to a particular device, while leaving address management centralized. This is often simpler than manually setting a static address in Mint and reduces the chance of accidentally choosing an address already in use.
A manually configured static address can be appropriate in some managed networks, but it must use the correct subnet, gateway, and DNS settings and must not conflict with another device. Do not copy an address at random from another computer. If you are configuring a work or school machine, follow the network administrator’s instructions. A stable local address also does not by itself make a computer reachable from the public internet; router rules, firewall policy, and security considerations still apply.
Common problems and how to diagnose them
If hostname -I prints nothing or does not show the address you expect, check whether the connection is active. Confirm that Wi-Fi is enabled and connected to the intended network, or reseat the Ethernet cable and check the router or switch. Then use ip addr to see whether the interface is present and whether it has an address. An interface marked down or lacking an expected inet entry may point to a disconnected link, failed DHCP request, or disabled connection.
If an address begins with 169.254, the computer may have assigned itself a link-local IPv4 address because it did not receive a normal DHCP lease. Check the router’s DHCP service, reconnect to the network, and inspect the connection status. On a managed network, ask the administrator before changing settings. An address beginning with 127 is loopback and does not show a usable network connection to other devices.
If another device cannot connect using the address, make sure both devices are on a network that allows them to communicate. Guest Wi-Fi often isolates connected devices, and a firewall or application setting may block the service even when the IP is correct. Verify that the service is running and listening on the network interface, not only on localhost. Also recheck the address after reconnecting, because DHCP may have assigned a different one.
Privacy and safe use
Looking up your local address is safe and does not expose it to an external website. A public-IP check does send a request to the lookup service, which can see the public address used for that request, just as other websites can. Avoid pasting network details into public forums if they include information you do not want to share, and do not publish router configuration screenshots without checking them for sensitive details.
An IP address alone is not a password and does not grant access to your computer. Still, avoid opening router ports or disabling the firewall just to make a connection work without understanding the consequences. For remote access, prefer a well-configured VPN or a secure, maintained service, and use strong authentication. If you only need a local connection, use the private address on the trusted network rather than exposing a service to the internet.
Frequently Asked Questions
What command shows my IP address in Linux Mint?
Run hostname -I for a quick list of assigned addresses. Use ip addr when you need to identify which address belongs to Wi-Fi, Ethernet, or another interface.
Is 192.168.1.1 my Linux Mint IP address?
It is often a router or gateway address on home networks, not the computer’s address. Check Mint’s connection details or ip addr for the address assigned to your computer.
Why does a website show a different IP from Terminal?hostname -I normally shows local interface addresses, while a website sees the public address used to reach it. A router, carrier-grade NAT, or VPN can account for the difference.
How do I find my Wi-Fi IP rather than my Ethernet IP?
Run ip addr and look for the active wireless interface, often named something like wlp2s0. The interface name varies, so use the network settings connection details if you are unsure.
Does my Linux Mint IP address change?
It can. DHCP may assign a different local address later, and a public address may change according to your provider or VPN. A router DHCP reservation can keep a device’s local address consistent.