How to connect to a computer via IP address on a local Wi-Fi network: 5 working methods

Remote connection to a computer via a local network Wi-Fi By IP address — an indispensable skill for administering devices, transferring files, or providing technical support. Whether you want to access a work PC from a laptop, set up a home server, or simply help a relative with software configuration, knowing the right protocols and tools will save you time and effort.

In this article we will look at All current methods for connecting to a computer via IP in 2026, including standard tools Windows (RDP, Remote assistant), cross-platform solutions like TeamViewer or AnyDesk, as well as advanced methods through SSH And VNCWe'll pay special attention to configuring network settings to avoid common errors like "the remote computer is unavailable" or "the connection is blocked by a firewall."

Important: All instructions apply to home networks with routers. TP-Link, ASUS or Keenetic, as well as for corporate networks with Active DirectoryIf you're using public networks (for example, in a cafe or hotel), some methods may be blocked by the administrator.

1. Preparing the network: checking IP addresses and network settings

Before connecting to the computer via IP address, make sure both devices are on the same local network and communicate correctly with each other. Even if both PCs are connected to the same router Wi-Fi, problems with DHCP or settings IPv4/IPv6 may block the connection.

To check the current IP address computer you want to connect to:

  • 🖥️ In Windows: open Command line (Win + R → enter cmd) and run the command:
    ipconfig

    Look for the line IPv4 address in the block Wireless network adapter (For Wi-Fi).

  • 🍎 In macOS: open Terminal and enter:
    ifconfig | grep "inet "

    The active address will start with 192.168. or 10.0..

  • 🐧 In Linux (Ubuntu/Debian): Use the command:
    hostname -I

    or ip a for detailed information.

If IP address starts with 169.254., this means that DHCPThe router's server hasn't assigned the correct address. Restart the router and PC, or assign a static one. IP manually in the network adapter settings.

Parameter Windows macOS/Linux
Command to check IP ipconfig ifconfig / ip a
Ping another PC ping 192.168.1.100 ping 192.168.1.100
Checking ports Test-NetConnection 192.168.1.100 -Port 3389 nc -zv 192.168.1.100 3389

After receiving IP addresses check the connection between computers using the command ping:

ping 192.168.1.100

If the packets don't arrive (The specified node is unavailable), the problem may be with your firewall, antivirus, or router settings. Disable your firewall temporarily for testing.

📊 Which protocol do you most often use for remote connections?
RDP (Windows)
SSH (Linux/macOS)
VNC (cross-platform)
TeamViewer/AnyDesk

2. Connecting via RDP (Remote Desktop Protocol) in Windows

RDP — built-in protocol Windows for remote control of a computer with full access to the desktop. It runs on the port 3389 and supports the transfer of sound, clipboard and local disks. However, RDP is only available in Pro, Enterprise, and Education editions. - V Windows 10/11 Home he is not there.

To turn on RDP on the target computer:

  1. Open Settings → System → Remote Desktop.
  2. Activate the switch Enable Remote Desktop.
  3. In the section Additional options make sure it is selected Allow connections only from computers with Network Level Authentication (recommended).
  4. Remember the username (must have administrator rights) and password.

To connect from another computer:

  1. Click Win + R, enter mstsc and press Enter.
  2. In the field Computer enter IP address target PC (for example, 192.168.1.100).
  3. Enter the login and password for the account on the remote computer.

Make sure RDP is enabled on the target PC|Port 3389 is open in the firewall|IP address is static or assigned to the MAC in the router|Account has administrator rights-->

⚠️ Attention: If you use Windows 11 24H2 or newer, check your settings Remote Desktop Policies through gpedit.msc (Available only in Pro versions). In some builds, Microsoft changed the default security settings, blocking connections without Network Level Authentication (NLA).

If the connection fails, check:

  • 🔥 Firewall: Add a port exception 3389 (incoming connections).
  • 📡 Router: some models (ASUS RT-AX88U, TP-Link Archer C5400) are blocking RDP by default. Go to the router's web interface and check the section Firewall → Filter.
  • 🔄 Antivirus: Kaspersky, ESET NOD32 or Bitdefender may block RDP as "suspicious activity." Add an exception for mstsc.exe.

3. Alternative methods: TeamViewer, AnyDesk, and Chrome Remote Desktop

If RDP unavailable (for example, on Windows Home) or if you need a cross-platform solution, use third-party programs. They don't require port configuration and work even through NAT, but depend on the manufacturer's servers.

Comparison of popular tools:

Program Free version OS support Peculiarities
TeamViewer Yes (for personal use) Windows, macOS, Linux, Android, iOS File manager, chat, multiple monitor support
AnyDesk Yes (with limitations) Windows, macOS, Linux, Android, iOS Low latency, no installation required
Chrome Remote Desktop Yes Any OS with Chrome browser Integration with Google Account, easy setup

Instructions for TeamViewer:

  1. Download the program from official website on both computers.
  2. On the target PC, run TeamViewer and write it down ID And Password (they change with each launch).
  3. On the second computer, enter ID partner and click Connect.
  4. Enter your password when prompted.
How to bypass the limitations of the free version of TeamViewer?

Free version TeamViewer This program is intended for personal use only. If commercial activity is detected (for example, frequent connections to different devices), the program may block the session with a message "Suspected of commercial use"To avoid blocking:

- Use the program only to connect to your personal devices.

- Do not connect to the same PC from different accounts.

- For business, obtain a license (from $50/month).

Advantages of third-party programs:

  • 🌍 Works via the Internet (does not require a shared local network).
  • 🔒 Traffic encryption (in AnyDesk is used TLS 1.3).
  • 📱 Mobile device support (you can control your PC from your smartphone).
⚠️ Attention: In 2026 TeamViewer changed its privacy policy to allow the collection of data about connected devices to "improve the service." If this is critical, use AnyDesk or customize SSH/VNC without intermediaries.

4. Connecting via SSH (for Linux/macOS and Windows with OpenSSH)

SSH (Secure Shell) is a protocol for securely managing a computer via the command line. It is ideal for servers or Linux-machines, but since 2018 it has also been supported in Windows 10/11 through OpenSSHUnlike RDP, SSH does not provide a graphical interface, but allows you to execute commands, edit files, and run scripts.

To turn on SSH server:

  • 🐧 On Linux (Ubuntu/Debian):
    sudo apt update && sudo apt install openssh-server
    

    sudo systemctl enable --now ssh

  • 🍎 On macOS: open System Preferences → Sharing and turn it on Remote login.
  • 🖥️ On Windows:
    # Install the OpenSSH server (in one command in PowerShell as administrator):
    

    Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH.Server*' | Add-WindowsCapability -Online

    Start the service:

    Start-Service sshd

    Set-Service -Name sshd -StartupType 'Automatic'

To connect from another computer, use the client SSH:

  • IN Windows (through PowerShell or cmd):
    ssh username@192.168.1.100

    Where username — user name on the target PC.

  • IN Linux/macOS:
    ssh -p 22 username@192.168.1.100

    Port 22 It is not necessary to specify it if it is standard.

If the connection fails:

  • 🔌 Make sure the port 22 open in firewall:
    # For Windows:
    

    New-NetFirewallRule -DisplayName "Allow SSH" -Direction Inbound -LocalPort 22 -Protocol TCP -Action Allow

  • 📡 Check that your router is not blocking the port (on some models MikroTik or Zyxel SSH disabled by default).

5. Using VNC for Remote Desktop (Cross-Platform)

VNC (Virtual Network Computing) is a protocol for remote control of a graphical interface, similar to RDP, but cross-platform. Popular implementations: TightVNC, RealVNC, UltraVNCUnlike RDP, VNC works at the port 5900 and may be less responsive on weak connections.

Setting up TightVNC on Windows:

  1. Download and install TightVNC Server With official website.
  2. Launch TightVNC Server and set a password in the settings (Passwords).
  3. In the server settings (Settings) make sure the mode is selected Accept connections on port 5900.
  4. Add a port exception 5900 in the firewall Windows.

To connect from another computer:

  1. Install TightVNC Viewer.
  2. Enter IP address target PC (for example, 192.168.1.100:5900).
  3. Enter your password when prompted.

Peculiarities VNC:

  • ⚡ Slower RDP when transmitting video or animation.
  • 🔒 By default, traffic is not encrypted (use SSH tunnel for safety).
  • 🖥️ Supports multiple connections simultaneously (useful for learning or collaboration).

To encrypt traffic VNC through SSH:

  1. On the target PC, configure SSH server (see section 4).
  2. On the client PC, create a tunnel:
    ssh -L 5901:localhost:5900 username@192.168.1.100
  3. Connect via VNC Viewer To localhost:5901.

6. Troubleshooting: Why IP connection isn't working

If you follow the instructions but still cannot connect, please check the following:

1. Network problems:

  • 🌐 Make sure both computers are on the same subnet (e.g. 192.168.1.x). If IP addresses differ in the third octet (for example, 192.168.0.x And 192.168.1.x), they will not see each other.
  • 🔌 Reboot your router - sometimes DHCP- the server "forgets" the issued addresses.
  • 📡 Check if the router is in the "Secure Mode" mode. AP Isolation (client isolation), which blocks communication between devices on the network.

2. Firewall and antivirus:

  • 🔥 Temporarily disable your firewall Windows (Control Panel → Firewall → Turn on or off).
  • 🛡️ Add an exception for the program you are connecting through (for example, mstsc.exe For RDP or vncviewer.exe For VNC).
  • 🦠 Check your antivirus settings: Kaspersky This Settings → Advanced → Network.

3. Target computer settings:

  • 😴 Make sure your PC is not in sleep or hibernation mode (in Windows check Settings → System → Power & sleep).
  • 👤 For RDP or SSH Use an account with administrator rights.
  • 🔄 If IP address dynamic, it can change after a reboot. Assign static IP in the router settings (bind by MAC address).
Error Possible cause Solution
The remote computer requires Network Level Authentication. Disabled on the target PC NLA (Network Level Authentication) Turn on NLA V System → Remote Desktop → Advanced Options
Failed to connect to the remote PC Port 3389 closed or RDP disabled Check your settings RDP and firewall
Connection refused (with SSH) Service SSH not running Start the service: sudo systemctl start ssh (Linux)

7. Security: How to secure your remote connection

Remote connection via IP address — a potential vulnerability if the network is not secured. Follow these recommendations:

1. Use complex passwords:

  • 🔑 For RDP, SSH or VNC Set passwords that are at least 12 characters long and contain letters, numbers, and special characters.
  • 🔄 Change your passwords regularly (every 3-6 months).

2. Restrict access by IP:

  • 📛 In the firewall Windows or iptables (Linux) Allow connections only from trusted IP addresses.
  • 🌐 Configure it on your router Port Forwarding For local network only (do not open ports to the Internet unless necessary).

3. Additional measures:

  • 🔒 For SSH disable password login and use authorization keys:
    # Generate a key on the client PC:
    

    ssh-keygen -t ed25519

    Copy it to the server:

    ssh-copy-id username@192.168.1.100

  • 🛡️ Turn on two-factor authentication (for example, through Google Authenticator For SSH).
  • 📡 Update your router firmware - vulnerabilities in DD-WRT or standard firmware may allow attackers to intercept traffic.
⚠️ Attention: If you open ports RDP (3389) or SSH (22) for access from the Internet, your computer will become a target for botnets like Mirai or TrickBotAccording to data Kaspersky by 2026, 90% of attacks on RDP occur within the first 24 hours after the port is opened. Use VPN or Zero Trust- solutions for secure access.

FAQ: Frequently asked questions about connecting to a computer via IP

Is it possible to connect to a computer via IP over the Internet, and not just on a local network?

Yes, but for this you need:

  1. Tune Port Forwarding on the router (forward the external port, for example, 3389 to the internal IP address target PC).
  2. Use static external IP (or a dynamic DNS service like No-IP).
  3. Provide protection (for example, change the default port RDP to a non-standard one, for example, 3390).

⚠️ Risk: Opening RDP on the Internet without VPN or 2FA extremely unsafe!

How to connect to a macOS computer via IP from Windows?

For management macOS With Windows:

  • Turn on Remote login in the settings macOS (System Preferences → Sharing).
  • Use SSH for command line or VNC (included in the same section Screen control).
  • For VNC on Windows install RealVNC Viewer or TightVNC.

Alternative: TeamViewer or AnyDesk (do not require additional settings).

Why do I get a black screen or the error "The remote computer is disconnected" when connecting via RDP?

Possible reasons:

  • 🖥️ The monitor on the target PC is turned off or power saving mode is activated (check the power plan settings).
  • 🔌 Video driver does not support RDP (update driver or use basic video adapter).
  • 🛠️ Corrupted system files (run sfc /scannow in the command line as admin).

Solution: Connect via Safe Mode with Networking (hold while loading F8 or Shift + Restart V Windows 10/11).

How to transfer files between computers over a local network?

File transfer methods:

  • 📂 Through RDP: V Windows when connecting in Local resources select Disks → they will be available on the remote PC.
  • 🌐 By FTP: install the server (eg. FileZilla Server) and connect via ftp://192.168.1.100.
  • 🔗 Through SSH (for Linux/macOS):
    scp file.txt username@192.168.1.100:/path/on/server
  • 📎 With the help of TeamViewer or AnyDesk (built-in file manager).
Is it possible to connect to a turned off computer over the network?

No, the computer must be turned on to connect remotely. However, there are workarounds: