How to find your Wi-Fi router's IP address and port: step-by-step instructions

Finding your Wi-Fi router's IP address and port is often the first step when setting up a home network, installing a game server, or connecting a printer. In most cases, the router's default settings allow access to the control panel via a local address, which appears as a string of numbers. However, when it comes to port forwarding or remote access from an external network, understanding the difference between internal and external addresses becomes critical to proper operation.

In this article, we'll explore proven methods for determining these parameters on various operating systems, including Windows, macOS, and mobile platforms. You'll learn not only how to find the necessary numbers but also how to interpret them correctly to configure your network's security and performance.

Before we get into the technical details, it's important to understand that IP address — is a unique identifier of a device on the network, and port — This is a specific communication channel through which data is transmitted to a specific application. Incorrectly configuring these settings can result in your devices simply not being able to see each other or, worse, becoming vulnerable to external attacks.

⚠️ Note: Router and operating system interfaces are updated regularly. The location of settings may vary depending on the firmware version of your device (e.g. Keenetic, TP-Link or Asus), so check the manufacturer's official documentation if the exact menu names do not match.

Finding the Gateway IP Address in Windows

For Windows users, the fastest way to find the IP address of your Wi-Fi router (which in this context is referred to as the "Default Gateway") is using the command line. This method is universal and works on all OS versions, from Windows 7 to the latest Windows 11, without requiring any additional software.

To get the information you need, you need to launch the command console. Press the key combination Win + R, enter cmd and press Enter. In the black window that opens, enter the command ipconfig and press Enter. The system will display a long list of options, among which you need to find the section corresponding to your wireless adapter (usually called "Wireless Network" or "Wi-Fi").

In this section, look for the line Main gateway (Default Gateway). The numbers opposite (e.g., 192.168.0.1 or 192.168.1.1) are your router's IP address on the local network. This is the address you enter into your browser's address bar to access the settings.

  • 🔍 Click Win + R and enter cmd to launch the command line.
  • 💻 Enter the command ipconfig and find the section for your Wi-Fi adapter.
  • 📍 Copy the value from the "Default gateway" line - this is the router's IP.

Sometimes users confuse IPv4 and IPv6 addresses. For local router configuration, you always need the IPv4 and IPv6 addresses. IPv4 An address that typically consists of four sets of numbers separated by periods. If you see a line with colons, it's IPv6, and you won't need it for standard configuration tasks yet.

Finding an address on macOS and Linux

Apple computer owners use a slightly different approach to finding network settings, although the essence remains the same. macOS provides a convenient graphical interface for viewing connection details, which may be easier for inexperienced users than using the Terminal.

To receive data through the interface, go to the Apple menu (the apple in the upper left corner) and select "System Preferences." Next, find the "Network" section. Select your active Wi-Fi connection and click "More Details" or "Advanced." In the window that opens, go to the TCP/IP tab, where you'll see Router (Router) - this is the IP address we are looking for.

For Linux users or those who prefer the terminal in macOS, there is a command netstat or more modern ip routeIn the macOS or Linux terminal, enter netstat -nr | grep defaultThe system will display a line starting with the word "Default," followed by the gateway IP address. This is a quick and reliable method that works even without a graphical interface.

operating system Search method Keyword/Command Where to look for the result
Windows Command line ipconfig Default Gateway
macOS System Preferences Network -> TCP/IP Router field
Linux Terminal ip route The first line after the word default
Android Wi-Fi settings Network details Gateway

It's important to note that the commands may differ slightly on some Linux distributions or older versions of macOS. For example, on very old systems, the command ifconfig, but now it is considered obsolete, and it is better to rely on ip or graphical interface.

📊 Which operating system do you use most often?
Windows
macOS
Linux
Android/iOS

How to find a router's IP address on Android and iOS

Mobile devices are the primary way to access the internet today, and the need to configure a router often arises when a computer is not at hand. Fortunately, modern mobile operating systems allow access to technical connection details directly from the Wi-Fi settings.

On devices with the operating system Android The process may vary slightly depending on the manufacturer's operating system (Samsung, Xiaomi, Pixel). Typically, you need to go to "Settings," select "Wi-Fi," and tap the name of your current network or the gear/arrow icon next to it. In the menu that opens, look for the "Details" or "Manage" section, which will indicate Gateway (Gateway) or "Router".

Users iOS (iPhone, iPad) can also find this information without third-party apps. Go to "Settings" -> "Wi-Fi." Tap the blue information icon (the letter "i" in a circle) next to the name of the connected network. Scroll down to the "IPv4 Address" section. There you'll see the "Router" field—this is your device's IP address for logging into the admin panel.

⚠️ Note: On some Android smartphones, the full gateway IP address may not be displayed in the default menu. In this case, we recommend downloading a free network scanner app (such as Fing or Network Analyzer), which will display the entire network map and router address.

It's worth remembering that mobile devices often use randomized MAC addresses for privacy, but this doesn't affect the router's IP address. The gateway address always remains static for your local network until you change the router's settings.

Why can't I see my IP address on my phone?

Some smartphone manufacturers hide technical details in the basic interface for simplicity. Try tapping "More" or "Advanced Settings" in the Wi-Fi menu.

What are ports and how can I find out their status?

If everything is relatively clear with the IP address, then the concept port This often causes confusion. A port isn't a physical opening, but a virtual point through which programs exchange data with the network. Think of an IP address as the address of an apartment building, and ports as the apartment numbers where mail arrives.

When you ask the question "how to find the Wi-Fi port," you're usually referring to one of two scenarios: either you want to know the port for accessing the router's web interface (usually 80 or 8080), or you need to check whether a specific port is open to the outside world (for example, for a game or server). The standard port for router web interfaces is 80 (HTTP) or 443 (HTTPS). If the page doesn't load when you enter the IP address, try adding the port number separated by a colon, for example: 192.168.1.1:8080.

There are dedicated online services and utilities for checking open ports and their status. However, to find out which port your application is using within the network, you can use the command netstat In Windows, enter the following in the command line: netstat -an, and you will see a list of all active connections and ports that your system is currently listening to.

  • 🔌 Port 80 — standard port for web traffic (HTTP).
  • 🔒 Port 443 — secure web traffic (HTTPS).
  • 🎮 Ports 27015-27030 — often used by game servers (Steam).
  • 📡 Port 21 — FTP file transfer protocol.

Understanding the port structure is essential for proper configuration. NAT (Network Address Translation). If a port is closed on the router, external requests simply won't reach your computer, even if the program is running. This is why setting up game servers or video surveillance systems requires a procedure called "port forwarding."

☑️ Check ports

Completed: 0 / 4

Setting up Port Forwarding

Port forwarding is a mechanism that allows you to redirect external internet requests to a specific device within your local network. Without this setting, your router, acting as a firewall, will block incoming connections, considering them potentially dangerous.

To set up forwarding, you need to log into the router's control panel by entering the IP address you found earlier in your browser. After logging in (the login and password are often found on a sticker on the bottom of the device), find a section called "Port Forwarding," "Virtual Servers," "NAT," or "Applications and Games." In the menu, TP-Link This is usually the "Forwarding" section, and in Asus — «WAN» -> «Virtual servers».

In the forwarding rule settings, you'll need to specify the internal IP address of the device (your PC or camera), the internal port number, the external port number, and the protocol (TCP, UDP, or both). After saving the settings, the router will begin forwarding traffic on the specified port directly to the desired device.

⚠️ Warning: Opening ports reduces the security of your network. Never forward ports for services you don't know, and be sure to set strong passwords on externally accessible devices.

There is also technology UPnP (Universal Plug and Play), which allows applications to automatically open the necessary ports without user intervention. It's convenient, but less secure, as it allows applications to independently change network settings. For maximum control, it's better to configure ports manually.

Common problems and their solutions

Even knowing how to find the IP address and port, users often encounter connection difficulties. One of the most common issues is an IP address conflict or an incorrect subnet mask. If your computer receives an address from a different subnet (for example, 10.0.0.5 instead of 192.168.1.5), it simply won't be able to reach the router.

Another common situation is blocking by antivirus software or Windows Firewall. Even if the port is open on the router, the local firewall may block the connection. In such cases, it's worth temporarily disabling protection for testing or adding an exception for the desired application in the security settings.

It's also worth mentioning the issue of "gray" IP addresses from ISPs. If your ISP uses CGNAT technology, your external IP address will match those of thousands of other users, making port forwarding impossible without ordering a "Static IP" service or switching to IPv6. You can check this by comparing the IP address in the router interface (WAN IP) with the IP address shown on sites like 2ip.ru. If they differ, you have a "gray" IP.

  • 🔄 Reset network settings with the command ipconfig /flushdns And ipconfig /release.
  • 🛡️ Check if your antivirus is blocking the connection.
  • 🌐 Make sure you have a "white" (public) IP address from your ISP.

If all else fails, try resetting your router to factory settings (Reset button on the router), but remember that this will erase all your current configurations, including PPPoE settings and Wi-Fi passwords.

Frequently Asked Questions (FAQ)

Is it possible to change the router's IP address to any other one?

Yes, you can change your router's local IP address (for example, from 192.168.0.1 to 192.168.50.1) in the LAN settings. However, you should do this carefully: after changing the address, you will have to enter the new IP address to access the settings, and all devices on the network may lose connection until you reboot.

Is it safe to open ports for games?

Opening ports for specific games is generally safe as long as you only open the ports specified in the game's requirements. Risks arise when opening a wide range of ports or forwarding ports for untrusted programs.

Why doesn't my IP address start with 192.168?

Some router manufacturers use different ranges by default. For example, devices MikroTik 10.0.0.1 is often used, and Apple AirPort — 10.0.1.1. This is normal and is not an error.

How do I find out who is connected to my Wi-Fi via IP?

The router control panel has a "Client List" or "DHCP Server" section. It displays all devices, their IP addresses, and MAC addresses. Compare them with known devices to identify any uninvited guests.

Do you need a static IP for normal operation?

A static external IP is not necessary for regular internet use, social media, and streaming services. It is only required if you plan to host servers, connect direct-access CCTV cameras, or play specific online games.