Ifconfig which is my ip. Options interface The name of the interface.

Ifconfig which is my ip Check Local IP address via ip command: There’s another command looks more straightforward. In this article, we will explore several methods to find your IP address in a Linux environment. Using ifconfig Command The ifconfig command is a versatile tool for configuring network Mar 31, 2019 · How do I find out the IP address of in Linux ? It's a common question for a number of Linux users. Oct 4, 2016 · In my pc's network sharing center, there's wifi, ethernet, vpn, dial-up connection. Since public IP is normally not provided free of cost, people use a What is my IP address? 52. Open the Terminal window and type in the following command: “ifconfig” . Click on Properties next to your internet connection. This is just a basic usage of the ifconfig command in Linux. Look for the line labeled "IPv4 Address" — this is your private IP address. May 11, 2009 · ifconfig en0 | grep inet | grep -v inet6 Output of above is expected to be in the following form: inet 192. By default, the ipconfig command displays your IP Address, Subnet Mask, and default gateway. show • What is my IP address? — The best tool to find your own IP address, and information about it. msn. su • What is my IP address? — The best tool to find your own IP address, and information about it. There are a couple of CMD Commands to check IP addresses in Windows 10/11. Jan 22, 2017 · Unfortunately, when behind a router, the IP address you would get from ipconfig or ifconfig is the internal home or office network IP address of your computer, which is only visible to other internal home or office network devices. As an alternative, netstat -i will list all interfaces and will show you the IP addresses you have assigned to each of them. I have openSuSE 11. Although ifconfig is considered deprecated in favor of the ip command in many modern distributions, it remains a vital Jan 16, 2012 · If I check with google, I can see my public IP. After that, it is usually only needed Dec 12, 2023 · In this example, we use the ifconfig command to activate the network interface named ‘eth0’. To open a command prompt, right-click the start button and choose PowerShell (Admin) or Windows Terminal (Admin Aug 2, 2022 · Ifconfig is an older version of the ip command, but many still prefer ifconfig due to its simpler syntax and ease of use. Oct 28, 2024 · Refreshing IP Address: You can renew your IP address using ipconfig /renew if you’re troubleshooting connectivity. How to get my IP So far, the following who use ifconfig in the domain name. 100 netmask 255. 144. Simply run: ip address 4. 3 + virtualbox) . maxmind. What is 0. meAbout ifconfig. This guide provides an in-depth look at ifconfig, including how to use it to set IP addresses, enable/disable interfaces, and troubleshoot network issues, complete with practical examples. Learn to manage network configurations efficiently on Ubuntu systems. 2 on acer aspire 5515. Is there something on the Ubuntu command-line which will yield me the same answer? Nov 10, 2012 · How do you define "primary"? If you're thinking "the IP address that's on the same subnet as my default route", you'll need to program a bit for that. 5 days ago · What is My IP in Linux? Unveiling Your System’s Identity Discover exactly what is my IP in Linux using command-line tools and explore the difference between public and private addresses, allowing you to troubleshoot network issues and configure services confidently. ifconfig has been officially deprecated for the ip suite, so while many of us are still using the old ways, it is time to put those habits to rest and move on with the world. If I type ipconfig to checkout my ip address, it lists all kinds of address info separated by all kinds of adap Mar 8, 2024 · The ifconfig command in Linux is a powerful tool for network interface configuration and management. Using the ipconfig /all command The ipconfig /all command provides a comprehensive list of information about each adapter, including the IP address, subnet mask, default gateway, DNS Feb 29, 2024 · Conclusion In this article, we have shown you how to find your IP address on Mac using the command line, which is a useful skill for any Mac user. me/ip -> IP Adress curl ifconfig. *$/\1/p' In this case, sed -n eliminates the routine printing of lines from input, and the search Apr 18, 2025 · Ifconfig commands are one of the basic commands in Linux networking. As for IPv6, you only have a link-local address, which suggests that your local network supports it but your ISP doesn't May 7, 2011 · T he ifconfig command does not show IP address on my Linux based laptop computer. 167. Mar 6, 2025 · In this post, I will show you how to get Public IP address using PowerShell. We can use several several commands to interact with this site and get our current public IP address from this URL. me/port -> Port thonks to http://ifconfig. This article provides a comprehensive guide to uncovering your Linux system’s IP address and understanding its significance When curl'd or wget'd it's just your IP (when viewed normally it gives more info). Here are some tips to solve this problem under Linux operating system when the ifconfig command does not show IPv4 address on Linux. ifconfig. There’s much more to learn about this powerful tool, including more advanced usage scenarios and tips. Used without any options, ifconfig displays network settings of all network interfaces on the system: In the picture above you can see, among other parameters, the IP address (inet addr) and the MAC address (HWaddr) of your system. To display your IP address in Linux, you can use the ifconfig command. In this article, I will explain the ipconfig command and the different options that you can use. io/ip 52. This command will only show the eth0 interface. When i'm putting the code on: ifconfig ifconfig results in a terminal shows: eth0 Link encap:Ethernet HWaddr: f8:a9:63:64:3f:1c UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets: 0 errors:0 d You can find your IP address a couple of ways. Now about why there is more than one address. May 31, 2024 · The output will contain basic network information about each of the network adapters on your computer or server. co is a user-friendly online tool designed to help users quickly identify their public IP address along with additional information related to it. " Oct 9, 2025 · Open the terminal application. com? Simple cURL API! $ curl ifconfig. io 52. Note: To find the address of a different connection, click on Network & Internet settings here. Key Features of ip addr: It shows advanced data Simple cURL API! $ curl ifconfig. On modern Linux systems, the ip command has replaced ifconfig. Typical resource via a web browser is is whatismyip. The command output includes the interface name, its assigned IP address, netmask, broadcast address, and other network-related information. me - (Get your external IP address curl ifconfig. ifconfig If the command does not exit, run command to install it: sudo apt install net-tools 3. ifconfig in Linux is a utility that you can use to view and configure gateway settings. Normally, if we want to find the public IP Address we use, we go to google and search “what is my ip address”. What does it mean if your local IP Address is different from your external IP address? If your local IP is different than the external IP, it means that you are behind a router and that you are sharing the external IP with at least one device (the router being one of them). The ifconfig command is a powerful tool for managing network interfaces on Unix-based operating systems. PowerShell Invoke-WebRequest The Invoke-WebRequest command sends requests to a URL. 9. 236 Multiple command line HTTP clients are supported, including curl, httpie, GNU Wget and fetch. Apr 21, 2025 · Discover how to easily find your IP address on Windows 11 using CMD with our step-by-step guide, ensuring seamless navigation and connectivity. Jan 30, 2013 · Add a comment | Show 3 more comments curl ifconfig. If you know which interface you want the address for (e. Finding your computer’s IP address through Command Prompt is a quick and easy process. me is a straightforward online tool designed to provide users with their public IP address. But how do I find my Public IP? (I have a static public IP but I want to find it out using unix command) ifconfig. Mar 12, 2023 · I'm allowed to access a server via ssh. Jun 1, 2025 · On some Unix-like operating systems, ifconfig is used to configure, or view the configuration of, a network interface. This works the same in both Command Prompt and PowerShell. It enables users to manage IP addresses, troubleshoot network connectivity, and configure Aug 8, 2015 · Explains how to find my public IP address using the dig and host command line options on a Linux operating systems. Oct 21, 2023 · If you were to navigate to https://ifconfig. Introduction There are multiple instances in which you will need to locate the IP address of your Linux server. me/). Learn how to use the ipconfig cmd command on Windows to display IP Addresses, release/renew an IP address, and flush DNS cache. 142 Aug 31, 2022 · Also, read about how to check the mac address of your computer or any remote computer in the network. Both "ip a" and "ifconfig" will give you an IP address. la • What is my IP address? — Fast, scalable ip lookup service server implementation powered by fastify and maxmind May 8, 2024 · H ow do I find out my Linux / UNIX system ip address, subnet, and related networking information from a bash shell command prompt? How can I determine my private and public IP addresses from the command line? To find out the IP address of Linux/UNIX/*BSD/macOS and Unixish system, you need to use the command called ifconfig on Unix and the ip command or hostname command on Linux. It allows users to view the status of network interfaces, configure IP addresses, enable or disable interfaces, and more. , eth0, the first Ethernet card), you can use this: ip="$(ifconfig | grep -A 1 'eth0' | tail -1 | cut -d ':' -f 2 | cut -d ' ' -f 1)" In other words, get me the network configuration information, look for eth0, get that line and the next one (-A 1 Apr 21, 2010 · curl ifconfig. ifconfig. As you know, especially if you are connected to a router, it will provide you private IP via the DHCP and it is NAT’ed. 0 ip address? 5 days ago · Learn how to check your IP address in CMD quickly on Windows. Another one is netsh. What is Ifconfig? Ifconfig, short for "interface configuration," is a command-line tool commonly used in Unix-based operating systems. Tried ipconfig and gip (powershell) both of them shows different ip compared to ip from the browser. But how exactly do you use ifconfig for network interface configuration? Your business is getting a private IP address from your ISP? Normally ISPs reserve the public IP addresses for business customers because they pay more than residential customers, and give any private IP addresses to residential customers. May 25, 2020 · You can determine your system private IP address by querying the network stack with commands such as ip, ifconfig or hostname. This powerful utility enables users to view and manage network interface configurations. Follow our step-by-step guide to master this essential tech skill. Important: ifconfig has been deprecated in favor of the ip command in many Linux distributions, but it is still available on some systems or can be installed separately. I was given the ip address and port number of ssh service. me ifconfig. Check this post to get more info about how to find ip address in Linux. See full list on howtogeek. This page covers the GNU / Linux version of ifconfig. I am ro Jul 27, 2020 · For other desktops or Ubuntu server without an UI, you can run ifconfig command to find your IP. To get more detailed information we need to use one or more of the command options discussed below. As you get more familiar with it, you will know that you cannot do without it regarding network diagnostics. Jun 1, 2025 · There is a difference between the local IP address and the public IP address (your router’s IP on the Internet). Mar 3, 2022 · Learn how to retrieve your public facing IP Address form the command-line for use in automation and scripting. I've just installed CentOS7 as a virtual machine on my mac (osx10. io. 100, you would type the following into your terminal: ifconfig eth0 192. If you need to find your public IP address, you can use the curl command. IPv4 display If you are certain that wlan0 is the interface, then you can return the information for just this interface with: ifconfig wlan0 Now that you have only one line with Bcast: in it (eliminating tail) you can use sed to combine the grep and cut functions: ifconfig wlan0 | sed -n 's/^. me/ip in your web browser of choice, you would see nothing except a public IP address. 111. Nov 26, 2019 · Explains how to find out your IP address (eth0) under a CentOS / RHEL / Fedora / Redhat Enterprise Linux using ip/ifconfig command line options. Run curl ifconfig. me/host -> Remote Host curl ifconfig. The website provides a straightforward interface that displays the user's IP address prominently, making it easy for individuals to access this information without any technical knowledge. But what if the machine has no default route, but still has >1 IP addresses? Aug 20, 2021 · To find your local IP address on Windows 11, open Settings -> Network & Internet -> Your Wi-Fi Network. Linux command to find local ip address of a Linux system. Multiple computers can have a single public IP if a network is set up using a technique called NAT (Network Address Translation). me would be the best choice, in case you don't have curl: wget -qO- ifconfig. co Good. Feb 8, 2025 · Understanding Gateways in ifconfig A gateway is a device like a router that connects your local network to the internet or a different network. How to use Dec 17, 2024 · The ifconfig command, part of the net-tools package, is a powerful utility used for network interface configuration in Unix-like operating systems. co • What is my IP address? — The best tool to find your own IP address, and information about it. Also can request via json - ifconfig. You can use the ifconfig or ipconfig commands to find your local IP address, and the curl command to find your public IP address. Under Properties, look for "IPv4 address" to find your local IP address. Hope this can help you. Although the ip command has largely replaced ifconfig in modern distributions, ifconfig is still… Sep 22, 2025 · Learn how to get your public IP on Linux using curl. co/all. Oct 8, 2012 · 30 You can use ifconfig, it will show your inet address (IP) and mask. In addition to revealing the IP Jul 23, 2025 · 3. Is there an easy way in a unix terminal to get just the IP address, rather than looking through ifconfig? Apr 26, 2025 · How to Check IP Address on Linux Command Line. Linux ifconfig and ip command help. me) but the standard networking tools can't figure it out locally. It enables users to view and configure network interface parameters, making it essential for systems administrators and network engineers. Oct 6, 2009 · I can find my IP address using ifconfig or hostname -i command. 0 Oct 14, 2021 · The ipconfig command is used to display information about your network configuration and refresh DHCP and DNS Settings. This command can also be used to configure, disable and enable a network interface. me/ip ifconfig. How do I fix this problem? You need to configure your networking. The output will display the private IP address for all the network interfaces. json (included the headers sent with request). While ipconfig focuses on IP configuration, ifconfig handles both IP and other network interface parameters, making it a more versatile tool in non-Windows environments. Get my IP AddressBrought to you by dudetechitout. Nov 18, 2015 · It's not so easy if you want to take into account wlan and other alternative interfaces. Usually a driver name followed by a unit Learn what ipconfig is - and ipconfig commands like /release, /all, and /flushdns - to get the most out of this essential tool. How to Find Your IP Address in Windows - Settings Click on your internet connection in the lower-right corner of your Taskbar. Wrapping It Up To sum up, ipconfig is a robust tool that is commonly underused for network planning and troubleshooting purposes. For me, the VM (using a DHCP address from my router) was not in my local machine's arp table. www. Oct 9, 2025 · The best way to find your IP address on Mac is to use ifconfig command in the terminal. Need a hosts file to protect you from big tech - canihazprivacy. Also running sudo /sbin/ifconfig returns commmand not found. Oct 27, 2024 · Learn how to use cURL commands to check your public IPv4 and IPv6 addresses quickly and easily from the command line. Includes commands, tips for IT teams, and troubleshooting steps. Feb 11, 2025 · On the other hand, macOS and Unix/Linux systems use the ifconfig command, which offers similar functionality but with a different syntax and additional features. io/host msnbot-52-167-144-191. For example, to change the IP address of eth0 to 192. root). I have seen solutions using an external Oct 19, 2025 · About ifconfig. Commonly, it’s used for querying or configuring network interfaces to facilitate networking capabilities on a given system. 236 $ curl ifconfig. To make it knows on the network I had to get the VM to attempt a connection to my host ip - which was tricky, since i couldn't access the VM, but i did it. Here are multiple ways to get the IP of host system in Linux. Thank you for your question and reaching out. Your business is getting a private IP address from your ISP? Normally ISPs reserve the public IP addresses for business customers because they pay more than residential customers, and give any private IP addresses to residential customers. This command will show you a variety of information about your network. The ifconfig (interface configuration) command in Linux is used to configure, manage, and display network interface settings. But running ifconfig on the server does not sh The ip command in Ubuntu checks the IP address. What about DHCP? ifconfig stands for "interface configuration. *Bcast:\(. This section covers the primary method using the ifconfig command, along with alternative approaches for more tailored needs. io/host msnbot-52-167-144-236. com. Feb 6, 2023 · Hi. Apr 23, 2010 · In linux, how can I get my IP address - ifconfig and ip addr show are not working Ask Question Asked 15 years, 7 months ago Modified 6 years, 10 months ago Oct 14, 2025 · Are you looking for an easy way to find your Mac's IP address? The Mac Terminal is the perfect tool for finding your network settings, including the physical May 6, 2020 · The ip command is the future of network config commands. 04. So far, the following who use ifconfig in the domain name. Default Gateway: This is your router's IP address. Related: Step by Step Guide to troubleshoot a network issue in Linux. 1 netmask 0xffffff00 broadcast 192. The “ ifconfig ” command is used for displaying current network configuration information, setting up an ip address, netmask, or broadcast Are you expecting to see a public IPv4? Because that's your router's address, the device isn't aware of it. Likewise, ip route to replace route, bridge (in addition to ip link) to replace brctl and then other subcommands of ip to replace various other commands (for VLANs, tunnels, bond interfaces). You have new mail in /var/spool/mail/acer acer@linux-ukd8:/etc> sudo ifconfig root’s Oct 27, 2010 · A better way: get ip adress from command "ip", because "ifconfig" is out of date. 255 Add an awk statement to print the second column to avoid using cut (awk is a pretty standard unix tool): I think that everybody should start using ip addr show <INTERFACE> because the ifconfig way is deprecated on recent linux systems and I noticed that ifconfig behaviour on a Lollipop Nexus 5 and Marshmallow Nexus 5X was different for ifconfig and netcfg, so ip addr show way was the only way I could get both working predictably. Enter the following command: ip addr show Your IP address will be listed next to inet under the interface name. 168. This article will delve into the basics of using ifconfig to add an IP address to an interface, ensuring your system remains connected to your network You configure your network client hosts with the command line by using commands to change your current settings or by editing a number of system files. Oct 17, 2011 · You can use ifconfig to get the IP address of any of the interfaces on the system (note that there may well be more than one interface and more than one IP address). With ifconfig, you can display your current network settings, including your local IP address, netmask, and broadcast address. search. IFCONFIG(8) Linux System Administrator's Manual IFCONFIG(8) NAME top ifconfig - configure a network interface SYNOPSIS top ifconfig [-v] [-a] [-s] [interface] ifconfig [-v] interface [aftype] options | address DESCRIPTION top Ifconfig is used to configure the kernel-resident network interfaces. Syntax ifconfig [interface] ifconfig interface [aftype] options | address Options interface The name of the interface. Jun 28, 2021 · The ifconfig command is deprecated and replaced with ip and may not be included in the newer Linux distributions. me is a webservice that displays information about your connection Apr 9, 2024 · Find your IP address on Ubuntu using command-line tools or GUI. The IP address is four sets of digits May 6, 2025 · Find your private IP address On Windows, you can use the ipconfig command to display your network configuration details. The best command line collection on the internet, submit yours and save your favorites. Feb 13, 2025 · Finding Your Mac’s Local IP Address Discovering your Mac’s local IP address is a straightforward process that can be accomplished through the Terminal using specific commands. It forms part of iproute2, which is by default included with most Linux releases. com Need a robust API to Geolocate IPs and fetch other crucial information? Try IPinfo. Lets say that your first interface is eth0, you could get a bit more direct with ip and use "ip addr show eth0". *\) . co ifconfig. One is ipconfig. It is particularly useful for those who want to check their connection details Apr 18, 2025 · Ifconfig commands are one of the basic commands in Linux networking. To access your Raspberry Pi remotely (over the Internet), you need to set up port forwarding from your public address to the Raspberry Pi. You can find the private and public IP addresses of your Linux server; it depends o A Simple Public IP Address API Want to get started right away? Don't wait, run one of the code samples below in your terminal and check it out! May 8, 2024 · Explain how to find out an IP address assigned to an eth0 or br0 interface under Linux using ifconfig and ip commands. Continue reading for a comprehensive guide on mastering the ifconfig Jun 15, 2023 · Look for your adapter, and your IP address will be there. It is used at boot time to set up interfaces as necessary. In Linux, the standard tool for displaying and configuring network interfaces is ip . The ifconfig command provides more detailed output related to your system IP. It connects your local network to the Internet. Basically, it is used to configure and manage various network interfaces. For the gateway, issue the ip route command and take note of the default route. me to obtain that same IP information via command line via an Administrative PowerShell Prompt. Explore installation and execution steps for accurate IP retrieval. Enter the following command to check the private IP address on your system: Oct 9, 2025 · In Linux, you can view a list of all the network interfaces and their associated IP addresses by running the ifconfig -a or ip addr command. 255. Jun 1, 2025 · Linux ifconfig command, featuring practical examples and detailed information on configuring network interfaces in Unix-like command line systems. Jul 12, 2025 · A quick and easy guide for locating your Mac computer's IP using System Settings or the TerminalWhen your Mac is connected to a network, it is assigned an address on the network called an IP address. Jun 1, 2023 · How to find public ip address of a windows 11 pc using powershell or command prompt. How to Find the IP Address in Windows 10/11 Using the Command Prompt In this tutorial, we will learn how to find your IP address in Windows 10 using the Command Prompt. net • What is my IP address? — The best tool to find your own IP address, and information about it. You can easily find Public IP address (IPv4 and IPv6) assigned to your computer Dec 22, 2012 · Is there a way for me to get my public (WAN) IP address on the command line? I am behind a router (LAN network), with a dynamic IP address assigned by my ISP. What is my IP address?Your IP: 52. If you are using Linux, ifconfig is deprecated and you will want to use ip. The operating system of the server is ubuntu 18. So if you are still curious how to read the output of ifconfig, you can continue reading this article. Get my IP AddressNeed a robust API to Geolocate IPs and fetch other crucial information? Try IPinfo. Here’s an example of the output from ipconfig. Public or External IP address is the one provided by your Internet Service Provider (ISP). More choices. But if you use Linux, you can get your public IP Address from the command line using curl command. When I run the command I get acer@linux-ukd8:/etc> ifconfig Absolute path to ‘ifconfig’ is ‘/sbin/ifconfig’, so running it may require superuser privileges (eg. Aug 30, 2024 · Learn how to effortlessly check your IP address in Windows 10 using Command Prompt. The website serves as a quick reference for individuals seeking to identify their IP address without the need for complex configurations or software installations. You can ask a service to echo back the IP it sees the connection from (like by running curl ifconfig. me to get the public IP address. co — What is my IP address? The best tool to find your own IP address, and information about it. Oct 6, 2021 · So on Linux you should consider using ip link and ip address instead of ifconfig. 191 $ curl ifconfig. Two commands, ifconfig and route, are used for network configuration. When the command is successful, it doesn’t produce any output. Oct 9, 2025 · Get Ip address with ifconfig command in Linux The ifconfig command is a common command that is used to view IP related information in Linux. Nevertheless, the primary tool used for configuring routing in recent Linux distributions is IP. Feb 11, 2023 · In summary, finding your IP address in Ubuntu can be done using either the ip addr or ifconfig commands. Otherwise you will get a problem on using "ifconfig", because the output of ifconfig is language dependend. How do I get this programmatically? Jul 11, 2025 · Knowing your IP address is fundamental for network administration, troubleshooting, and various Linux system tasks. Press Enter to run the command. I’d be more than happy to help you with your query Two command line utilities that can be used to check TCP/IP configurations and IP connectivity are: ipconfig (for Windows) or ifconfig (for Linux): This utility displays information about the network configurations of the local system, including IP addresses, subnet masks, default gateways ifconfig I nter f ace config urator - display your ip address, network interfaces, transferred and received data information, configure a network interface. Nov 17, 2023 · Using ifconfig Command The third method to find your IP address involves using the ifconfig command. Check Your Public IP address: For me, the VM (using a DHCP address from my router) was not in my local machine's arp table. com However you can use ifconfig. Oct 9, 2025 · Change IP address using ifconfig command in Linux If you see an interface that is not configured correctly, you can use ifconfig to change its settings. Jun 11, 2010 · I come from ubuntu were ifconfig is used to check my ip address and cards on my computer. To get the IP address using the ifconfig command in Linux, follow these steps: Open a terminal: Launch a terminal Jul 24, 2023 · ifconfig in short “ interface configuration ” utility for system/network administration in Unix/Linux operating systems to configure, manage, and query network interface parameters via command-line interface or in a system configuration scripts. g. These commands Dec 16, 2011 · I'm trying to use just the IP address (inet) as a parameter in a script I wrote. Feb 16, 2016 · Below are the commands used to find your IP Address on different operating systems: WINDOWS IP ADDRESS Start a CMD window and type ipconfig or ipconfig /all (not case sensitive) and press ENTER LINUX IP ADDRESS Start a TERMINAL session and type ifconfig (is case sensitive) and press ENTER SOLARIS IP ADDRESS Start a TERMINAL session and type ifconfig -a (is case sensitive) and press ENTER APPLE . So using ‘ifconfig’, ‘ip addr show’, ‘hostname -I’ or via the GUI won’t show the public IP. But with correct parameters, you can get a lot more information out of it. Aug 31, 2022 · Also, read about how to check the mac address of your computer or any remote computer in the network. What do we know about this IP address? In EU? This information is provided from the GeoLite2 database created by MaxMind, available from www. Aug 10, 2024 · However, ifconfig is still able to use in many systems, and some of the users still use ifconfig to just check the IP address or change some configuration. This article is part of the following series. cx • What is my IP address? — The best tool to find your own IP address, and information about it. io ifconfig. On most modern distributions ifconfig has been depracated, use ip instead. However, with newer commands such as ip in modern distributions these days, ifconfig is still popular among network administrators and enthusiasts of Linux. Dec 16, 2024 · During the course of implimentation or troubleshooting, there may be a need to Identify the Public IP address of a connector server. me/ua ->User Agent curl ifconfig. 0. Get my IP Address You can also type ifconfig en0 or ifconfig en1 for the configuration of a particular interface only (as someone said in their answers, en0 is typically the wired Ethernet while en1 is the WiFi interface). *$/\1/p' In this case, sed -n eliminates the routine printing of lines from input, and the search Get my IP Address ★ ifconfig. Jul 23, 2025 · Method 1: Using the ip addr Command to Check IP address in linux ip addr command is the most consistent and up-to-date way to inspect your IP address. Running ifconfig returns command not found. aypobkj wsnaln himak wlqt wwlzrif hgqp qijqzm pstew xlzdb rzs eqkz dtn uxcsbk owesi iuxqerrj