On Arch Linux, run ip addr in a terminal to see the addresses assigned to your network interfaces. For a quick summary, use ip -br addr; look for an inet line for IPv4 or an inet6 line for IPv6 under the interface you are using.
Get a quick IP address summary
The ip command, provided by the iproute2 tools, is the standard way to inspect network interfaces and addresses on modern Linux systems. It does not normally require administrator privileges just to display information. Run:
ip addrfor the full address and interface listing.ip -br addrfor a compact, easier-to-scan summary.ip -4 addrto show IPv4 addresses only.ip -6 addrto show IPv6 addresses only.
A brief listing might look like wlan0 UP 192.168.1.24/24. In this example, 192.168.1.24 is the interface’s IPv4 address, while /24 is the network prefix length. It describes the size of the connected network; it is not part of the address itself. Your interface may instead be named something like enp3s0 or wlp2s0.
If the shell says ip: command not found, the iproute2 package is missing or unavailable in that environment. On an installed Arch system with working package access, install it with sudo pacman -S iproute2. The Arch installation environment may already include the command, but minimal systems and containers can differ.
Read the output and identify the right address
The output of ip addr groups information by interface. The first entry is often lo, the loopback interface. Its address, commonly 127.0.0.1/8 for IPv4 and ::1/128 for IPv6, refers back to the same computer. It is useful for local software communication, but it is not the address other devices use to reach your computer.
Look below the loopback entry for a physical or virtual network interface. The line beginning with inet gives an IPv4 address; the line beginning with inet6 gives an IPv6 address. A device can have more than one address of either type, so do not assume that the first address in the entire output is the one you want. Check the interface name and whether it is active.
Common private IPv4 ranges include addresses beginning with 10., 192.168., and 172.16 through 172.31. These are typically used on a home or workplace network and are not, by themselves, public internet addresses. An address beginning with 169.254. is usually an automatically selected link-local address; seeing one when you expected a router-assigned address can indicate that address configuration did not complete.
For a focused IPv4 view, run ip -4 addr show scope global. Here, global means the address is not limited to the interface or host in the way a loopback address is. It does not guarantee that the address is publicly reachable: private IPv4 addresses also appear with global scope in this command.
Find which interface is carrying your connection
Interface names depend on the hardware and system configuration. Ethernet devices often have names beginning with en, while Wi-Fi devices often begin with wl. Names such as enp3s0 and wlp2s0 are examples, not fixed names that every Arch installation will use. Virtual machines, containers, USB adapters, and bridges can introduce additional interfaces.
To list interfaces and their link state without the address details, use ip link. An interface marked UP has been administratively enabled, but that alone does not prove that it has a working connection or a usable IP address. For a concise view of both state and addresses, use ip -br addr, then match the address to the interface connected to your router or network.
You can also ask the kernel which source address it would use to reach a destination. For example:
ip route get 1.1.1.1
A result may include a device name and a src value. The src value is the local address Linux would use for that route. This is particularly useful on a machine with Ethernet, Wi-Fi, a VPN, or several active interfaces. It performs a route lookup; it does not test whether the destination is online or whether an application can connect to it.
Check the address with your network manager
The ip command shows addresses known to the kernel regardless of which service configured them. Arch Linux does not require one particular network manager, so the appropriate status command depends on what you chose during installation. It is common to manage a desktop connection with NetworkManager, while some installations use systemd-networkd or another tool.
If NetworkManager is managing the connection, nmcli device status lists devices and their connection state. To inspect an individual device, use nmcli device show wlp2s0, replacing wlp2s0 with your actual interface. The output includes address information when the device is connected. NetworkManager’s graphical applet may show similar details in the connection information panel.
For a system managed by systemd-networkd, networkctl status gives an overview, and networkctl status enp3s0 can show details for a named interface. These tools provide useful context about the manager’s view of a connection, but ip addr remains a useful cross-check because it displays the addresses currently configured on the system.
Do not start a second network manager just to obtain an address. Two services attempting to configure the same interface can conflict. First identify the service already in use, then use its status tools to diagnose the connection. Installing or enabling another service is a network-configuration change, not a requirement for viewing an IP address.
Check Wi-Fi and Ethernet connections
For Wi-Fi, first confirm that the wireless interface exists and is up with ip link. A visible Wi-Fi interface does not necessarily mean the computer has joined an access point. Check the connection state in the network manager you use, and then inspect the assigned address with ip addr. If the interface is connected but has no IPv4 address, it may be waiting for address configuration or encountering a router or DHCP issue.
For Ethernet, check that the cable is connected and that the interface reports a usable link. A plugged-in cable alone does not ensure that the network has assigned an address. On either connection type, an active interface with no expected address is a reason to inspect the network manager’s logs and connection status rather than repeatedly running the address-display command.
A DHCP client or network manager usually requests a local address from a router or network server. In many home networks, the router assigns a private IPv4 address and may also provide IPv6 configuration. The precise steps for renewing a lease depend on the service managing the interface. Avoid running a separate DHCP client blindly: it may compete with the configured manager or change the connection state unexpectedly.
Local IP address versus public IP address
People asking for their computer’s IP often mean one of two different things. The local address shown by ip addr identifies an interface on the connected network. A public address is the address that an outside service sees for a connection to the internet. On a typical home network, a router uses network address translation (NAT) to let several devices share one public IPv4 address, so the computer’s local address and the public address are different.
To check the internet-facing address, you can query an external service, for example with curl -4 https://api.ipify.org for IPv4 or curl -6 https://api64.ipify.org for IPv6. These examples require curl and an internet connection, and they send a request to a third-party service. The response reports the address that service sees for that request; it does not replace the local interface listing.
Consider privacy before using an online lookup: the service can receive the request and its source address. A VPN can also change the address reported by the external service, while ip addr may still show the local address on the physical network and a separate address on the VPN interface. Some providers use carrier-grade NAT, so the public address seen by a lookup site may be shared and may not be directly configurable on your router.
Understand IPv4, IPv6, and multiple addresses
IPv4 addresses use four decimal numbers separated by dots, such as 192.168.1.24. IPv6 addresses use hexadecimal groups separated by colons, such as 2001:db8::25. Linux can show both address families on one interface. The IPv6 address beginning with fe80: is link-local and is generally used only on the local network segment; its presence does not by itself show that internet IPv6 access is available.
A system may have multiple IPv6 addresses, including temporary addresses used for privacy, as well as addresses on VPNs, bridges, or virtual interfaces. This is normal. Use ip -6 addr to inspect them and check the interface and address scope. The route lookup command can help determine which address would be selected for a particular destination.
For sharing an address with someone troubleshooting a connection, include the address family and interface name when relevant. An IPv4 address alone may be ambiguous on a machine with several interfaces, and an IPv6 link-local address usually needs interface context to be useful. Do not post an address publicly if revealing network details could create a privacy or security concern.
Common problems and useful checks
- Only
loappears: The network interface may be missing, unavailable to the system, or not recognized. Check hardware and driver status, and look for other interfaces withip link. - The interface is present but has no address: Confirm that the interface is connected and that the configured network service is running and managing it. A DHCP or network configuration problem may be involved.
- You see only
127.0.0.1: That is the IPv4 loopback address, not your LAN address. Inspect the non-loopback interfaces. - You see
169.254.x.x: This is typically a link-local IPv4 address, not the expected router-provided lease. Check the connection and address-configuration service. - The reported address differs from a website: The website sees the internet-facing path, which may involve NAT, a VPN, a proxy, or carrier-grade NAT. The two results answer different questions.
If the address exists but applications cannot reach the network, address assignment may not be the only issue. Check the default route with ip route, the DNS configuration with the system’s resolver tools, and the network manager’s connection status. A valid IP address does not prove that DNS, routing, firewall rules, or the upstream internet connection is working.
Frequently Asked Questions
What command shows my IP address on Arch Linux?
Run ip addr to show addresses on all interfaces, or ip -br addr for a compact summary. Use ip -4 addr or ip -6 addr to filter by address family.
How do I show only my IPv4 address?
Run ip -4 addr show scope global, then identify the address under the interface you are using. The scope global filter can include private LAN addresses; it does not mean the address is public.
Why does Arch show several IP addresses?
A computer can have multiple interfaces and multiple addresses, including loopback, Wi-Fi, Ethernet, VPN, and IPv6 addresses. Check the interface name and address type to find the one relevant to your task.
How can I find my public IP on Arch?
Query an external IP lookup service, such as with curl -4 https://api.ipify.org. This reports the address seen by that service, which can differ from the local address shown by ip addr.
Does Arch Linux assign an IP address automatically?
Arch can receive an address automatically when an appropriate network service is configured to manage the interface and the network provides address configuration, such as DHCP. The exact setup depends on the network manager selected for the system.