On Kali Linux, run ip addr in a terminal to see the IP addresses assigned to your network interfaces. For a shorter view, use ip -br addr; to show only IPv4 addresses, use ip -4 addr.
The quickest commands to try
Open a terminal and enter one of these commands. They are built into the standard Linux networking tools and normally do not require administrator privileges:
ip addrlists interfaces and their IPv4 and IPv6 addresses.ip -br addrgives a compact, one-line-per-interface summary.ip -4 addrfilters the detailed output to IPv4 addresses.ip -6 addrfilters it to IPv6 addresses.
For most people who just want to identify the address their Kali machine is using, start with ip -br addr. Look for an interface marked UP and an address after inet or inet6. The brief command is easier to scan when several virtual, wired, or wireless adapters are present; the full command provides more detail about each interface.
These commands report addresses configured on the machine. They do not necessarily show the public address that websites see, and they cannot show an address for an interface that is disconnected or has not received network configuration.
How to read the command output
The output of ip addr is grouped by network interface. An interface is a connection point such as a wired Ethernet port, a Wi-Fi adapter, a loopback device, or a virtual adapter created by software. A typical excerpt might look like this:
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> ...
inet 192.168.1.23/24 brd 192.168.1.255 scope global dynamic eth0
inet6 fe80::1234:5678:abcd:ef01/64 scope link
Here, eth0 is the interface name and 192.168.1.23 is its IPv4 address. The /24 suffix is the network prefix length, which describes the size of the local network; it is part of the address notation, not an extra piece of the host’s IP address. The IPv6 line is a different address family. An address beginning with fe80:: is link-local, meaning it is for communication on the local network segment and is not a general internet-routable address.
You may also see 127.0.0.1 on the lo interface. This is the IPv4 loopback address, used by the computer to communicate with itself. It is not the address other devices on your network should use to reach Kali. Likewise, the presence of an address alone does not prove that internet access is working; routing and DNS matter too.
Choose the interface that is actually in use
Kali systems can have several interfaces, especially when used in a virtual machine or for security testing. Names vary: a wired adapter might appear as eth0 or enp0s3, Wi-Fi might appear as wlan0 or wlp2s0, and virtual or container interfaces may have names such as tun0, tap0, or docker0. Do not assume the name based on an example; check your own output.
To ask Linux which route it would use to reach an internet destination, run:
ip route get 1.1.1.1
If a route exists, the result commonly includes a phrase such as dev eth0 and a source address such as src 192.168.1.23. The device and source shown indicate the outgoing interface and local source address Linux would use for that destination. This is a useful cross-check when the machine has both Wi-Fi and wired networking, or when a VPN is active. It tests route selection, not whether the destination is reachable or whether DNS is functioning.
If there is no route, the command may report an unreachable network or fail to show a usable path. In that case, inspect the interface state and connection before treating an address on another adapter as the address used for internet traffic.
Local IP address versus public IP address
The address shown by ip addr is generally a local address assigned to an interface. Home and office networks commonly use private IPv4 ranges such as 192.168.x.x, 10.x.x.x, or 172.16.x.x through 172.31.x.x. A router often uses network address translation (NAT), allowing multiple devices with private addresses to share an internet-facing public IPv4 address.
That is why a website can report a different address from the one shown by Kali. If you specifically need the public address visible to an internet service, you can query an external IP-check service with a tool such as curl, if it is installed and you trust the service. For example, curl -4 https://icanhazip.com requests the public IPv4 address, while curl -6 https://icanhazip.com requests IPv6. The service sees the connection as it reaches it, which may be a VPN or proxy exit address rather than the address assigned by your internet provider.
This distinction is useful when troubleshooting but is not a security guarantee. A public-IP lookup sends a request to a third party, and its result reflects that particular route and protocol. Do not share an address publicly if you do not want to reveal network information.
Find IPv4, IPv6, and wireless addresses
IPv4 and IPv6 can coexist on the same interface, so a single interface may have more than one address. Use ip -4 addr or ip -6 addr when you know which family an application or troubleshooting task uses. IPv6 addresses can be long and contain colons; the :: notation compresses one or more consecutive groups of zeros. A link-local IPv6 address is not interchangeable with a globally reachable IPv6 address.
For Wi-Fi, the address is still listed by ip addr under the wireless interface. If you want to see whether a wireless network is connected, Kali systems using NetworkManager can also use nmcli device status. That command reports device state and connection information, while ip addr remains the direct way to inspect the addresses assigned to interfaces.
When Kali runs inside a virtual machine, its visible address depends partly on the virtual network mode. In NAT mode it may receive a private address on a virtual network; in bridged mode it may receive an address from the same network as the host. The guest’s address is the one reported inside Kali, not necessarily the host computer’s address.
Common problems and useful checks
If no expected address appears, first identify whether the interface exists and is up. In ip -br addr, an interface may show DOWN, or it may be up without an IPv4 address. A disconnected cable, disabled Wi-Fi, a stopped virtual adapter, or a failed DHCP request can all explain that situation. On NetworkManager-managed installations, nmcli device status can help distinguish a disconnected device from a connected one.
- Only
127.0.0.1appears: That is loopback, not a LAN address. Check whether the network adapter is enabled and connected. - The interface is up but has no
inetaddress: It may not have received an IPv4 lease. Check the network connection or DHCP configuration. - The address starts with
169.254: This is an IPv4 link-local address often assigned when normal DHCP configuration is unavailable. It may allow limited local communication but usually signals that the expected DHCP setup did not complete. - The address looks different from a guide: Interface names and network ranges differ across devices, installations, and virtual network settings.
- The IP is present but internet access fails: Check the route with
ip route, then consider DNS separately. An IP address by itself does not confirm that either is working.
Do not delete or alter interface configuration just to make an example match. First compare the interface, connection state, route, and address family to what the task actually requires. Changing network settings can interrupt remote access or a VPN session.
Command comparisons and alternatives
ip addr is the recommended general-purpose command because it shows the addresses for all interfaces and is part of the modern Linux iproute2 toolset. The older ifconfig command may appear in older tutorials, but it is considered a legacy tool and may not be installed on a current Kali system. If you type it and receive a “command not found” message, use ip addr rather than assuming networking is broken.
hostname -I is another quick option that prints addresses associated with the host, separated by spaces. It can be convenient for a quick glance, but it gives less context: it does not clearly label each address with its interface, and systems with multiple adapters may return more than one result. For troubleshooting or deciding which address belongs to Wi-Fi, Ethernet, or a VPN, prefer ip addr or ip -br addr.
In short, use ip -br addr for a readable overview, ip addr for detail, and ip route get 1.1.1.1 when you need to identify the address selected for a particular outbound route. Use an external lookup only when you specifically mean the public address seen from outside your network.
Safety and responsible use
Looking up the address assigned to your own Kali machine is ordinary network administration. An IP address can still reveal information about your local network or internet connection, so avoid posting it publicly when that could expose details you prefer to keep private. Private addresses are usually only meaningful within the local network, but they may still disclose its addressing scheme.
If you are using Kali for security testing, knowing your interface address can help you confirm which system is yours and whether a lab network is configured as expected. It does not authorize scanning or connecting to other devices. Keep testing within systems and networks you own or have explicit permission to assess, and verify the intended interface before running tools that send traffic.
Frequently Asked Questions
What is the one command to find my Kali IP address?
Run ip addr. For a shorter summary, run ip -br addr and read the address on the active interface.
How do I show only my IPv4 address in Kali?
Run ip -4 addr. To show only IPv6 addresses, use ip -6 addr.
Why does Kali show more than one IP address?
Your machine may have several interfaces, such as Wi-Fi, Ethernet, a VPN, and loopback, and an interface can also have both IPv4 and IPv6 addresses. Check the interface labels and use ip route get 1.1.1.1 to see which source address is selected for that destination.
How do I find my public IP from Kali?
Query a public IP-check service, for example with curl -4 https://icanhazip.com for IPv4. This contacts an external service, and the result may be your VPN or proxy exit address rather than your device’s local address.
Why does ifconfig not work on Kali?ifconfig is a legacy command and may not be installed. Use the standard modern alternative, ip addr, which provides interface and address information without requiring that older command.