Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

To see the addresses assigned to your Kali Linux interfaces, run ip -br addr. Find the active interface and read its inet value for IPv4 or inet6 for IPv6. That is your machine’s local address; to see the IPv4 address an outside service observes, run curl -4 https://api.ipify.org.

Local IP and public IP are different

A local IP address is assigned to a network interface on your computer, home network, VPN, virtual machine, or lab network. A public IP address is the address an external service sees when your traffic reaches it. A router, VPN, proxy, or cloud network may translate or replace the local address along the way, so the two usually differ.

What you want Command Where to look
Local IPv4 ip -4 addr The value after inet
Local IPv6 ip -6 addr The value after inet6
Compact interface and address list ip -br addr The address shown beside each interface
Public IPv4 seen by an external service curl -4 https://api.ipify.org The command’s response
Local address selected for an internet route ip route get 1.1.1.1 The value after src

The Linux ip address command displays interface addresses; Kali documentation also uses ip a and interface-specific forms of ip addr. See the ip-address manual and Kali’s network configuration documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Find your address with ip addr

For the full output, use:

ip addr

ip a is a shorthand for the same command. Output may look like this:

#1 Best Overall
HP OmniBook 3 17.3 inch Laptop PC, FHD Display, AMD Ryzen 3 30, 8 GB RAM, 512 GB SSD, AMD Radeon 610M Graphics, Windows 11 Home, Mica Silver, 17-dp0199nr
  • FULL HD IPS DISPLAY - Enjoy vibrant, crystal-clear images with 178-degree wide-viewing angles
  • AMD RYZEN 3 30 PROCESSOR - Everyday performance you can count on; Multitask, stream, game casually, and edit photos smoothly with responsive power and vibrant HDR visuals
  • ENJOY UP TO 14 HOURS AND 15 MINUTES OF BATTERY LIFE - HP Fast Charge restores battery from 0 to 50% in approximately 45 minutes
  • AMD RADEON 610M GRAPHICS - Experience smooth entertainment; Built for streaming and multitasking, enjoy realistic visuals and efficient performance for work and play
  • STORAGE AND MEMORY - 512 GB PCIe NVMe M.2 SSD offers fast speed and efficient storage; and 8 GB LPDDR5 RAM memory boosts performance with higher bandwidth
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP
    inet 192.168.1.42/24 brd 192.168.1.255 scope global dynamic eth0
    inet6 fe80::1234:5678:abcd:ef01/64 scope link
  • lo is the loopback interface. 127.0.0.1 and ::1 refer back to the same computer; they are not its address on a LAN or the internet.
  • eth0 is the interface name in this example. Your system might use names such as wlan0, wlp2s0, ens33, or tun0.
  • inet introduces an IPv4 address. Here, 192.168.1.42 is the local address.
  • /24 is the CIDR prefix length, which describes the network prefix; it is not part of the address itself.
  • inet6 introduces an IPv6 address. An address beginning with fe80: is link-local and generally works only on that local network segment.
  • scope global indicates an address with broader interface scope, but does not by itself guarantee internet reachability. dynamic commonly indicates an address assigned dynamically, such as through DHCP.
  • UP and LOWER_UP report interface state and link status. An address can still be present when routing, DNS, or internet connectivity is not working.

Skip lo when you want a network-facing address. It is normal to see several addresses, including multiple IPv6 addresses or addresses on VPN and virtual interfaces.

Use a shorter command or inspect one interface

For a concise overview, run:

ip -br addr

To reduce the output to one address family:

ip -4 addr
ip -6 addr

To inspect a particular interface, replace eth0 with the name shown on your system:

ip addr show dev eth0
ip -4 addr show dev eth0

The interface name is not universal. Use ip link to list interfaces and their state, or check NetworkManager with nmcli device status.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Identify the address Kali will use for a destination

When several interfaces are available, listing addresses may not tell you which one will carry traffic. Ask the routing table which route Kali would use to reach an IPv4 destination:

ip route get 1.1.1.1

A result may resemble 1.1.1.1 via 192.168.1.1 dev eth0 src 192.168.1.42. Read it as follows:

  • dev names the selected interface.
  • src is the local source address selected for that route.
  • via, when present, names the gateway.

For IPv6, use an IPv6 destination:

ip -6 route get 2606:4700:4700::1111

To inspect routes, including the default gateway, run:

Rank #2
HP 14" HD Chromebook Laptop for Students, Intel Quad-Core N4120(> N4020), 4GB RAM, 64GB eMMC, WiFi, Webcam, HDMI, USB-A&C, 14 Hours Battery Life, Zoom, Chrome OS, CUE Accessories
  • Intel Celeron N4120: 4 Cores & Threads, 1.1GHz Base Clock, Up to 2.6GHz Boost Clock, 4MB Cache, Intel UHD Graphics 600. The perfect combination of performance, power consumption, and value helps your device handle multitasking smoothly and reliably with four processing cores to divide up the work.
  • 14" HD Display: 14.0-inch diagonal, HD (1366 x 768), micro-edge, anti-glare. See your digital world in a whole new way. Enjoy movies and photos with the great image quality and high-definition detail of 1 million pixels.
  • Memory & Storage: 4 GB LPDDR4x & 64 GB eMMC Storage. Adequate high-bandwidth RAM to smoothly run multiple applications and browser tabs all at once. An embedded multimedia card provides reliable flash-based storage.
  • Ports:2 x USB 3.0 Type-A,1 x USB 3.0 Type-C,1 x HDMI,1 x Headphone Jack
  • Chrome OS: Chromebook is a computer for the way the modern world works, with thousands of apps. Enjoy the seamless simplicity that comes with Google Chrome and Android apps, all integrated into one laptop. It’s fast, simple, and secure.
ip route
ip -6 route

Look for a line beginning with default via in the relevant route table. An interface can have an address but still lack a default route, or be connected only to an isolated virtual network. Kali’s network documentation also shows interface-specific route inspection.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check addresses and connection state with NetworkManager

If NetworkManager is installed and manages the connection, these commands show device status and details:

nmcli device status
nmcli device show

For one device, use its actual interface name:

nmcli device show eth0

To request selected fields, try:

nmcli -f GENERAL.DEVICE,GENERAL.STATE,IP4.ADDRESS,IP4.GATEWAY,IP6.ADDRESS device show

connected means NetworkManager considers a device connected; disconnected means it has no active connection. unavailable may mean the device is disabled, blocked, unsupported, or otherwise unable to connect. Address fields show assigned addresses and the gateway where available. Field availability can vary with NetworkManager version and device, so run unfiltered nmcli device show if a filtered command omits what you need. See the official nmcli reference.

Find the public IP address

A local interface listing cannot reliably reveal the public address created by NAT or a VPN. To ask an external IP-echo service which IPv4 address it sees, run:

curl -4 https://api.ipify.org
echo

For IPv6, try:

curl -6 https://api64.ipify.org
echo

The response is the address presented to that particular service, not a definitive statement about every connection. A VPN may make the result show its exit address; Tor, proxies, corporate gateways, or cloud NAT may also change what is observed. Different services can report differently. These commands need working internet access and DNS. Kali documents curl as a command-line URL transfer tool.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If ifconfig is missing

Older Linux guides may use ifconfig. It remains a compatibility option, but it may not be installed, and the modern ip command is the better first choice:

Rank #3
Sale
AKCHART 15.6'' AI Laptop with Office 365 12GB RAM 256GB SSD Win 11 Laptops
  • Stunning 15.6" FHD IPS Display: Experience crisp 1920x1080 resolution on this 15.6 inch laptop with an IPS panel that delivers wide viewing angles and vivid colors. The narrow-bezel design maximizes screen real estate for comfortable viewing on this Win 11 laptop, whether you're studying or working.
  • Celeron J4105 Processor & 256GB SSD: Powered by a reliable Celeron J4105 processor paired with 12GB DDR4 memory and a fast 256GB M.2 SSD. This laptop computer supports SSD expansion up to 2TB and TF card expansion up to 1TB, so your storage grows with your needs. Delivers smooth multitasking for daily productivity.
  • AI-Powered Win 11 Laptop: Built-in AI features enhance your productivity with smart assistance for writing, summarizing, and task management. Pre-installed with Win 11 and includes Office 365 subscription. This student laptop is backed by 1-year warranty and 24/7 customer support.
  • All-Day 7000mAh Battery & 180° Hinge: The high-capacity 7000mAh battery keeps this laptop powered through long classes or meetings. The 180-degree lay-flat hinge lets you share your screen effortlessly during presentations. This durable laptop computer adapts to your dynamic workflow.
  • Versatile Connectivity Hub: Equipped with USB 3.2, Type-C, Mini HDMI, and 3.5mm audio jack to connect all your peripherals. Stay online anywhere with high-speed 5G WiFi and Bluetooth 4.2. This college laptop keeps you connected at home, in the library, or on the go.
ifconfig -a

The -a option includes inactive interfaces. If you specifically need ifconfig for an older guide, install its package:

sudo apt update
sudo apt install net-tools

Kali lists ifconfig in the net-tools package; installing it is not required just to check an address. On a minimal installation, utilities such as nmcli may also be absent. Check with command -v nmcli; do not assume every Kali installation has the same desktop or networking tools.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot a missing or unexpected address

No IPv4 address appears

First check interface state, NetworkManager status if available, and routes:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
ip link
nmcli device status
ip route

Possible causes include an unplugged cable, Wi-Fi that is not associated with an access point, DHCP not providing a lease, a disconnected VM adapter, a disabled interface, or looking at the wrong device. For one interface, check:

ip link show dev eth0
ip addr show dev eth0

If NetworkManager manages it, nmcli device connect eth0 can request a connection; substitute the correct device name. Reconnecting can interrupt a remote session, so do not run it casually over SSH or another connection that depends on that interface.

Only 127.0.0.1 appears

You are likely looking only at loopback. Run ip -br addr and check whether a physical or virtual network interface is listed and has an address. If none does, the machine does not currently have a configured network-facing address.

Rank #4
HP Essential Laptop 2026, Intel CPU, 128GB Storage, Office 365, Windows 11
  • Efficient Performance for Everyday Computing: Powered by Intel N150 processor with up to 3.6 GHz Intel Turbo Boost Technology, 6 MB L3 cache, 4 cores, and 4 threads, this HP laptop delivers responsive performance for web browsing, streaming, document editing, and multitasking. Paired with 4GB LPDDR5 RAM and 128GB UFS storage, it handles daily tasks smoothly. Includes 1-year Microsoft 365 Personal subscription for Word, Excel, PowerPoint, and cloud storage to maximize your productivity.
  • 14-Inch HD Micro-Edge Display:Enjoy clear visuals on the 14-inch HD (1366 x 768) anti-glare screen with 250-nit brightness and 62.5% sRGB coverage. The micro-edge bezel delivers a 79% screen-to-body ratio in a compact design. An HP True Vision 720p HD camera with noise reduction and dual-array microphones supports clear video calls, remote work, and online learning.
  • Modern Connectivity and Wireless Technology: Stay connected with Wi-Fi 6 (2x2) for faster wireless speeds and Bluetooth 5.4 for seamless pairing with accessories. Versatile port selection includes 1 USB Type-C 10Gbps with DisplayPort 1.2 for external displays, 2 USB Type-A 5Gbps ports for peripherals, 1 HDMI 1.4b port, 1 headphone/microphone combo jack, and 1 multi-format SD media card reader. Connect monitors, transfer files quickly, and expand your workspace with ease.
  • All-Day Battery Life and Portable Design: Enjoy up to 11 hours of video playback, 7.5 hours of mixed usage, or 7.5 hours of wireless streaming on a single charge, perfect for students and professionals on the go. Weighing just 3.24 lb and measuring 12.76" x 8.86" x 0.71", this lightweight laptop fits easily in backpacks and bags. The stylish willow green top cover with matte finish and natural silver keyboard deck with vertical brushing pattern offer a modern, professional look.
  • AI-Enhanced Productivity: Access Microsoft Copilot instantly with the dedicated Copilot key for faster assistance. AI Noise Reduction filters background sounds and improves voice clarity during calls. Dual speakers provide clear audio, while the full-size natural silver keyboard and HP Imagepad support comfortable typing and navigation.

The address starts with 169.254

An IPv4 link-local address in this range commonly appears when an interface has not obtained a normal DHCP lease. It may support limited communication on the local link, but usually does not indicate a normal routed internet connection. Check nmcli device status, ip route, Wi-Fi association or cabling, DHCP availability, and—if Kali is in a VM—the VM’s adapter configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Several interfaces or addresses appear

This is common with Ethernet and Wi-Fi at once, VPNs, containers, virtual machines, tunnels, or IPv6 privacy addresses. Names such as tun0 or wg0 are often used for VPN tunnels, while docker0, br-*, and veth* commonly relate to containers and bridges. Names are not proof of a device’s role; confirm with ip link, nmcli device status, and ip route get 1.1.1.1.

Kali is running in a virtual machine

The address inside Kali belongs to the VM’s network interface, not necessarily to the host computer. With NAT it is commonly a private address behind the host or hypervisor; bridged networking may put the VM on the LAN; host-only networking may have no internet route. The VM address and the public address returned by an external service answer different questions.

nmcli is unavailable

Minimal installations may omit NetworkManager tools, or the system may use a different network setup. Check command -v nmcli and continue with ip addr, ip link, and ip route. Avoid blindly enabling or restarting networking services on specialized lab or remote systems.

Share command output carefully

Checking an address does not, by itself, expose a service to the internet. But screenshots or copied output can reveal public addresses, private network layout, usernames, hostnames, or MAC addresses. Redact identifying details before posting output publicly. An IP address also does not prove that a service is listening or reachable; Kali’s network-service policy describes its default approach to externally listening services.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.