Connecting to a laptop via Wi-Fi It can be useful in a variety of situations: from sharing internet access with other devices to remote control or file transfer. Despite its apparent complexity, the setup process takes no more than 5-10 minutes if you know the key nuances. The main thing is to choose the right method depending on your purpose: do you need access point for smartphone, network drive for data exchange or remote desktop to control your laptop from another device.
In this article, we will look at three main connection scenarios Wi-Fi: 1) distributing the Internet from a laptop (turning it into a router), 2) setting up remote access (for example, via RDP or TeamViewer), 3) creating a local network for exchanging files between devices.
Each method is illustrated in detail with screenshots and accompanied by step-by-step instructions. Windows 10/11, macOS And Linux (where applicable). If you've never set up a network before, don't worry: we've covered common beginner mistakes and included tips on how to avoid them.
Important: Before you start, check if your laptop supports the feature. SoftAP (software access point). On most modern devices it works out of the box, but on some budget models or older ones Wi-Fi adapters Driver updates may be required. If the internet connection on the laptop itself disappears after enabling sharing, see the section about problem solving.
Method 1: Sharing Wi-Fi from a laptop (access point)
The most popular scenario is to turn a laptop into routerto share internet with a smartphone, tablet, or other device. This is useful if you don't have a physical router and your laptop is connected via a cable.Ethernet) or through USB modem (3G/4G). On Windows There is a built-in function for this Mobile hotspot, on macOS — option General access, and on Linux a terminal will be required.
On Windows 10/11 the algorithm is as simple as possible:
1. Open Settings → Network & Internet → Mobile Hotspot.
2. In the drop-down menu Sharing select the connection through which the laptop receives the Internet (for example, Ethernet or Wireless network, if you use USB modem).
3. Click Changeto set the network name (SSID) and password (minimum 8 characters).
4. Activate the slider Allow use of my internet connection.
Update your Wi-Fi adapter driver (via Device Manager)
Disable your antivirus/firewall (they may be blocking distribution)
Make sure your laptop is connected to the internet via a cable or USB modem.
Set a password for the network (do not leave the network open!)
-->
On macOS the path is a little longer:
1. Go to System Preferences → Sharing.
2. Select on the left Public Internet, and on the right in General connection Please provide the source (eg. Ethernet).
3. On the list For computers using mark Wi-Fi.
4. Click Wi-Fi settings, set the network name, channel (auto) and password (recommended WPA2/WPA3).
5. Activate sharing by pressing the button Launch.
⚠️ Attention: On some laptops with Wi-Fi 6 (802.11ax) sharing may be unstable due to driver issues. If devices connect but the internet isn't working, try manually selecting the channel.6or11in network settings (avoid automatic selection).
For Linux (for example Ubuntu/Debian) use terminal:
sudo apt install hostapd dnsmasqsudo systemctl stop hostapd
sudo systemctl stop dnsmasq
Then create a config for hostapd (example for the network MyHotspot with a password 12345678):
sudo nano /etc/hostapd/hostapd.conf
Insert:
interface=wlan0driver=nl80211
ssid=MyHotspot
hw_mode=g
channel=6
wpa=2
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
And start the access point:
sudo hostapd /etc/hostapd/hostapd.conf
If an error appears after launching nl80211: Could not configure driver mode, update your Linux kernel or use an adapter that supports it. AP mode (for example, on a chip Ralink or Atheros).
Method 2: Remote access to a laptop via Wi-Fi
If you need to control your laptop from another device (for example, from a smartphone or a second PC), connect to it via Wi-Fi, use protocols RDP (For Windows), VNC (cross-platform) or specialized programs like TeamViewer or AnyDeskThe first option is faster and more secure, but requires port configuration; the second is easier for beginners.
For Windows (built-in RDP):
1. Enable remote access: Settings → System → Remote Desktop → activate the slider.
2. Remember the name of your PC (displayed in the same window) or find the local IP address via ipconfig V Command line (look for the line IPv4 address).
3. On the device from which you will connect, open the program Remote Desktop Connection (included in Windows) and enter the IP address or PC name.
For macOS/Linux or if access is needed from Android/iOS, easier to use TeamViewer:
1. Download the program from the official website to both devices.
2. Run it on your laptop TeamViewer, write it down ID And Password (it changes with each launch).
3. On the second device, enter this data in the field Partner ID.
Built-in RDP (Windows)|TeamViewer/AnyDesk|VNC (RealVNC/TightVNC)|SSH (Linux/macOS)|I don't use it-->
⚠️ Attention: When connecting via RDP On a local network (without the Internet), make sure that both devices are on the same subnet. For example, if the laptop's IP192.168.1.100, then the second device must have an address of the form192.168.1.xIf the connection doesn't work, check your settings.Windows Firewall- it can block the port3389.
For Linux will do VNC or SSH:
- For VNC install the server (for example, tigervnc):
sudo apt install tigervnc-standalone-server
vncserver
Then connect from the client (for example, RealVNC) at the address Laptop IP: 5901.
- For SSH (terminal only):
sudo apt install openssh-serversudo systemctl enable ssh
sudo systemctl start ssh
Connection: ssh user@laptop_IP.
Method 3: Sharing files between devices via Wi-Fi
If the goal is to transfer files from a laptop to a smartphone, tablet or another PC without using cables, you can organize local network through Wi-FiThe most reliable methods: 1) FTP server (for large files), 2) Shared folders (For Windows/macOS), 3) specialized applications like LocalSend or Snapdrop (cross-platform).
For Windows the easiest to set up shared folder:
1. Create a folder (eg. Exchange) and right-click on it → Properties → Access → Sharing.
2. Select a user All and press Add, then set the rights (Reading and writing or just Reading).
3. Go to the tab Security → Change and add a user All with the necessary rights.
4. On the second device, open Conductor and enter in the address bar \\Laptop IP\Exchange (replace Laptop IP to the real address).
For macOS use File sharing:
1. System Preferences → Sharing → activate File sharing.
2. Click + and select a folder to share.
3. IN Users add All with rights Reading and writing.
4. On the second device in Finder select Go → Connect to server and enter smb://laptop_IP.
For cross-platform sharing without settings, use LocalSend:
1. Install the app on both devices (available for Windows, macOS, Linux, Android, iOS).
2. On your laptop, open LocalSend, go to Settings → Server and activate Turn on the server.
3. On the second device, in the same application, select the laptop from the list and send the files.
Additional settings for stable operation
To connect via Wi-Fi worked without any problems, check a few key parameters:
- 🔄 Adapter operating mode: IN
Device Manager(Windows) Find your Wi-Fi adapter, openProperties → Advancedand make sure that the parameterWireless Modeinstalled in802.11a/b/g/n/ac(orax, if supported Wi-Fi 6). - 📶 Channel and frequency: If you distribute Wi-Fi manually (for example, through Linux), select channels
1,6or11for 2.4 GHz (they don't overlap). For 5 GHz, use channels36–48or149–165. - 🔒 Security type: Always use
WPA2-PSKorWPA3. Open networks (No Security) are vulnerable to attack MitM (traffic interception). - 🖥️ Energy saving: IN
Control Panel → Power Options → Change Plan Settings → Change advanced settingsfindWireless Network Adapter Settingsand installMaximum performance.
| Parameter | Recommended value | Why is it important? |
|---|---|---|
| Channel Width | 20 MHz (for 2.4 GHz), 40/80 MHz (for 5 GHz) | A wide channel increases speed, but can create interference on busy frequencies. |
| Wi-Fi standard | 802.11n/ac/ax (depending on adapter) | Legacy standards (802.11b/g) limit speed to 54 Mbps. |
| MTU | 1500 (default) | An incorrect value may cause packet fragmentation and lags. |
| DNS server | 1.1.1.1 (Cloudflare) or 8.8.8.8 (Google) | Public DNS is faster than ISP DNS and blocks malicious websites. |
⚠️ Attention: If you are setting up Wi-Fi distribution on a laptop with Windows 10/11 and use VPN, the internet will not work on connected devices. This is a system limitation: VPN traffic is not transmitted through Mobile hotspotSolution: Disable your VPN or set up distribution via Linux/macOS.
Solving typical problems
Even with the correct settings, the connection Wi-Fi may be unstable. Here are the most common errors and how to fix them:
- 🚫 "Can't connect to this network":
- Please check that your password is entered correctly (case sensitive!).
- Reboot Wi-Fi adapter V
Device Manager. - If you use Linux, make sure the service
hostapdlaunched (sudo systemctl status hostapd).
- 🌐 There is Internet on the laptop, but not on connected devices:
- IN
Mobile hotspot(Windows) Verify that the correct source connection is selected. - Turn it off antivirus (For example, Kaspersky or Avast may block distribution).
- Perform in
Command line(from the admin):netsh winsock resetand restart your PC.
- IN
- 🔌 The laptop loses internet connection when sharing is enabled:
- This is a typical driver issue. Update them via
device Manageror from the manufacturer's website (Intel, Realtek, Broadcom). - If used PPPoE (for example, from Rostelecom), create a bridge between Ethernet And Wi-Fi V
Network and Control Center.
- This is a typical driver issue. Update them via
Why is Wi-Fi distribution speed lower than cable?
When connected via Wi-Fi, the speed is always lower due to:
1) Losses during signal encoding (up to 30–50% of the theoretical maximum).
2) External interference (other networks, microwave ovens, Bluetooth devices).
3) Standard limitations: for example, Wi-Fi 4 (802.11n) provides a maximum of 150 Mbps per stream, and Wi-Fi 5 (802.11ac) - up to 867 Mbps, but only under ideal conditions.
To improve speed:
- Switch to the 5GHz band (if supported).
- Reduce the distance between devices.
- Use an adapter that supports MIMO (multiple antennas).
If the problem is not resolved, please check system logs:
- IN Windows: Control Panel → Administrative Tools → Event Viewer → Windows Logs → System (look for errors with the source WLAN-AutoConfig).
- IN Linux: journalctl -u hostapd or dmesg | grep wlan.
- IN macOS: open Console (V Programs → Utilities) and filter messages by wi-fi.
Wi-Fi Security
Distribution Wi-Fi Using a laptop or remote access creates potential vulnerabilities. Follow these guidelines to minimize the risks:
- 🔐 Use complex passwords: For RDP or VNC Set a password of at least 12 characters long, including numbers and special characters. Wi-Fi Hotspot - minimum 8 characters (preferably 12+).
- 🛡️ Turn off distribution when it is not needed: An always-on access point can become a target for attack (for example, through vulnerabilities in
WPS). - 🌍 Restrict access by IP: IN Windows For RDP You can allow connections only from certain addresses through
Firewall(Advanced Settings → Inbound Rules). - 🔄 Update your software: Vulnerabilities in Windows RDP (For example, BlueKeep) or VNC servers are regularly exploited by hackers. Enable automatic OS updates.
For maximum security when accessing remotely:
- Use it VPN (For example, WireGuard or OpenVPN) before connecting RDP/VNC.
- Set up two-factor authentication V TeamViewer or AnyDesk.
- For Linux disable access by SSH for the user root (V /etc/ssh/sshd_config write down PermitRootLogin no).
Alternative connection methods
If the connection is via Wi-Fi If this is not possible (e.g. there is no adapter or it is broken), consider alternatives:
- 🔗 USB cable (tethering):
- For Android: connect your smartphone to your laptop via USB, activate
Modem modein the phone settings. - For iPhone:
Settings → Tethering(requires trusted device).
- For Android: connect your smartphone to your laptop via USB, activate
- 🔌 Ethernet (direct connection):
- Connect two laptops with a cable Ethernet (needed) crossover cable or adapter with Auto-MDI/MDIX).
- Set up static IP: on the first PC
192.168.1.1, on the second -192.168.1.2with a mask255.255.255.0.
- 📡 Bluetooth:
- Suitable for transferring small files (up to 1–2 MB/s). Enable Bluetooth on both devices and pair them.
- IN Windows use
Send filevia the context menu.
For remote control without Wi-Fi:
- TeamViewer or AnyDesk work through mobile Internet (3G/4G).
- Set up SSH through USB-OTG (For Android With root-rights).
- Use it Cloud services (For example, Chrome Remote Desktop), if both devices have Internet access.
Frequently asked questions
Is it possible to share Wi-Fi from a laptop if it is connected to Wi-Fi (not via cable)?
Technically yes, but it depends Wi-Fi adapter and drivers. Most modern adapters (for example, Intel AX200 or Qualcomm Atheros) support the regime AP+STA (simultaneous connection to the network and distribution). However, in Windows This is often blocked at the OS level. Solutions:
- Use Linux (For example, Ubuntu) with manual adjustment
hostapd. - Install third party software like Connectify Hotspot (paid) or Virtual Router Plus (for free).
- Connect your laptop to the router via cable (Ethernet), if possible.
On macOS Sharing Wi-Fi when connected to another Wi-Fi network is not possible without additional software.
How to connect to a laptop via Wi-Fi from an iPhone without additional programs?
For remote control:
- Use the built-in app Screen time (Screen Time) on iOS 15+, if the laptop is on macOS Monterey or newer. Activate
Shared screenin the settingsGeneral access. - For Windows install Microsoft Remote Desktop from App Store and connect via RDP.
For file transfer:
- Turn on
File sharingon a laptop (see the section on file sharing) and connect via the app Files on iPhone, having chosenConnect to the server. - Use AirDrop, if the laptop is on macOS.
Why do I get a black screen or the error "The remote computer requires Network Level Authentication" when connecting to a laptop via RDP?
This error is related to security settings. WindowsSolutions:
- On your laptop, open
gpedit.msc(Local Group Policy Editor) →Computer Configuration → Administrative Templates → Windows Components → Remote Desktop Services → Remote Desktop Session Host → Security→User authentication is required using Network Level Authentication.→ selectDisabled. - If
gpedit.mscis absent (for example, in Windows 10 Home), change the parameter in the registry:reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v SecurityLayer /t REG_DWORD /d 1 /freg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 0 /fThen restart your PC.
- Check that the client device has Connecting to a remote desktop the box is not checked
Connect only with Network Level Authentication.
If the screen is black, but the connection is established:
- Update the video card driver on your laptop.