Ad-Hoc mode: create a Wi-Fi network without a router

In the world of modern wireless technologies, the de facto standard has become an infrastructure topology, where all devices connect through a central node called a router or access point. However, many users are unaware that Wi-Fi protocol Originally designed to allow direct connection between devices, bypassing expensive hardware. This technology allows two laptops, a tablet and smartphone, or even a gaming console to be connected to a single local network for file sharing or co-op gaming.

This method is especially relevant in situations where it is not possible to deploy a full-fledged infrastructure, for example, in the field, in a home office, or when there is an urgent need to transfer gigabytes of data between colleagues. Technology It operates based on IEEE 802.11 standards but uses a fundamentally different packet addressing algorithm. Instead of relying on the gateway's MAC address, devices find each other directly using broadcast requests.

In this article, we'll take a detailed look at what this type of network is called, its technical limitations, and how to properly configure a direct connection on various operating systems. You'll learn the differences between classic Ad-Hoc and more modern implementations like Wi-Fi Direct, and understand when using this mode will be the most effective solution for your needs.

P2P network terminology and architecture

The answer to the question of what is the name of a Wi-Fi network built on the connection of network adapters without using a dedicated access point, lies in the term Ad-HocThis expression translates from English as "for this occasion" or "specially created." In the context of computer networks, this refers to a temporary, spontaneous connection that is established as needed and does not require prior infrastructure preparation. The architecture of such a network is peer-to-peer, meaning all participants are equal: any computer can both transmit and receive data.

Unlike the infrastructure mode, where the access point takes on the functions of synchronization, airtime distribution and client power consumption management, in the Ad-Hoc These functions fall to the adapters themselves. Devices must independently negotiate who transmits data and when to avoid collisions. This imposes certain limitations on connection performance and stability, especially as the number of participants increases.

It is important to note that the term IBSS (Independent Basic Service Set) is the technical name for this set of services in the IEEE 802.11 specifications. If you see this abbreviation in driver logs or Linux settings, you're talking about a network without an access point. Such networks lack a central controller that manages the association of clients.

⚠️ Attention: Ad-Hoc mode does not support WPS (Wi-Fi Protected Setup). Connection always requires manual entry of the network name (SSID) and security key, as automatic pairing via a push-button is not implemented.

There is also a concept Wi-Fi Direct, which is often confused with classic Ad-Hoc. While both modes allow devices to connect directly, Wi-Fi Direct is a more modern development, supporting higher speeds and better encryption (WPA2), simulating the behavior of an access point in software on one of the devices.

📊 What type of direct connection did you use?
Classic Ad-Hoc
Wi-Fi Direct
Bluetooth
Ethernet cable

Technical features and limitations of the mode

Ad-hoc networking has its own unique technical characteristics that distinguish it from traditional home Wi-Fi. This primarily concerns the frequency range and channel width. Most older ad-hoc implementations operated only in the 2.4 GHz band and supported standards up to 802.11g, which limited the maximum data transfer rate.

Another critical aspect is security. Since there is no central controller in the network to isolate clients from each other, all devices see all traffic. Using an encryption protocol WPA2-PSK This is a mandatory requirement, as older methods like WEP can be cracked in minutes. Without encryption, your data can be intercepted by any device within range.

  • 📡 Communication range: Typically less than in infrastructure mode, since there is no signal amplification by the access point.
  • 🔒 Encryption: WEP, WPA, and WPA2 standards are supported, but setup may be more complex.
  • 🔄 Speed: May drop as the number of nodes increases due to lack of transmission coordination.
  • 🔋 Power consumption: Higher, because the adapter is constantly in active search and transmission mode.

It's also worth mentioning the compatibility issue. Different network adapter manufacturers may implement the IBSS standard differently. For example, an adapter from Intel may not see the network created by the adapter from Realtek, if certain channel parameters or preamble types do not match. This makes Ad-Hoc mode less predictable in heterogeneous environments.

Parameter Infrastructure mode Ad-Hoc mode (IBSS)
Central device Required (Router/AP) Not required
Topology Star Mesh or Point-to-Point
Scalability High (tens of clients) Low (usually 2-5 devices)
Internet access Yes (through the gateway) Only when forwarding from one PC
Difficulty of setup Low Medium/High
Why is the speed lower in Ad-Hoc?

In Ad-Hoc mode, devices are forced to spend a significant amount of time on broadcast requests to discover each other and coordinate transmission times, as there is no central coordinator. This creates overhead that reduces the channel's useful throughput.

Setting up an Ad-Hoc network in Windows 10 and 11

Windows operating systems provide built-in tools for creating such connections, although in recent versions the interfaces have been somewhat hidden. First, you need to make sure that your network adapter supports monitor mode or creating a hosted network. Most modern cards from Intel, Atheros And Qualcomm this function.

The setup process begins by opening the Network and Sharing Center. You'll need to create a new connection by selecting "Set up a new connection or network." Next, select "Set up a wireless ad hoc network." If this option isn't explicitly listed, you can access it through the command prompt with administrator rights.

netsh wlan set hostednetwork mode=allow ssid=MyAdHocNetwork key=Password123

netsh wlan start hostednetwork

This command will create a virtual adapter that will broadcast a network with the specified name (SSID) and password. However, in Windows 10/11, this method may be unstable due to changes in Wi-Fi drivers. A more reliable method is to use PowerShell or specialized utilities that manage the driver directly.

  • 🖥️ Open "Settings" and go to "Network & Internet".
  • 🔧 Select "Mobile Hotspot" for modern Ad-Hoc alternatives.
  • ⚙️ For classic mode, use the command prompt (cmd) as administrator.
  • 🔑 Make sure that the adapter properties allow other users to use the network.

⚠️ Attention: Antivirus software and the built-in Windows firewall may block incoming connections in Ad-Hoc mode. If you experience issues with device visibility, temporarily disable protection or add an exception for the private network.

After successfully launching the network on the second device, find the created network in the list of available connections and enter the configured security key. It's important that the security type (usually WPA2-Personal) matches on both ends of the connection.

☑️ Check before creating a network

Completed: 0 / 4

Establishing a connection on macOS and Linux

Apple ecosystem users can also create direct wireless connections, although the company prefers to use a proprietary protocol AirDrop for file sharing. However, to create a full-fledged IBSS network in macOS, you need to use System Preferences. In the Network section, select your Wi-Fi adapter, and then choose "Create Network" from the network creation menu.

On Linux-based operating systems such as Ubuntu or Fedora, setting up an Ad-Hoc network is often done through the NetworkManager GUI or through the terminal using the utility iwLinux users appreciate this mode for its ability to create mesh networks and establish communications where no infrastructure exists. The command line provides more flexible control over channel and frequency parameters.

To create a network via the Linux terminal, you can use the following sequence of commands. First, deactivate the interface, then set the IBSS mode and initiate the connection:

sudo ip link set wlan0 down

sudo iw dev wlan0 set type ibss

sudo ip link set wlan0 up

sudo iw dev wlan0 ibss join MyNetwork 2437

Here 2437 — is the channel frequency in MHz (corresponds to channel 6). After completing these steps, the system will begin searching for or creating a network. To configure encryption in Linux, the following combination is often used: wpa_supplicant, the configuration file of which requires the mode to be specified mode=1 (which corresponds to Ad-Hoc).

Wi-Fi Direct: A Modern Alternative

With the development of technology, the classic Ad-Hoc mode began to give way to a more advanced standard. Wi-Fi DirectUnlike its predecessor, Wi-Fi Direct eliminates the need for manual IP address configuration and complex channel configuration. One device assumes the role of Group Owner, effectively becoming a software access point to which others connect.

The main advantage of Wi-Fi Direct is its support for high data transfer rates comparable to a regular Wi-Fi router (802.11n/ac/ax standards). This makes the technology ideal for streaming high-resolution video, such as when displaying images from a phone to Smart TV or when playing using VR headsets.

Wi-Fi Direct security has also been taken to a new level. It uses the WPS security method with a PIN code or push-button confirmation, guaranteeing strong WPA2 encryption. Devices automatically negotiate security parameters, eliminating human error and password entry errors.

  • 🚀 Speed: Support for modern speed standards up to several Gbit/s.
  • 🔐 Safety: Automatic generation of complex encryption keys.
  • 📱 Convenience: One-touch connect.
  • 🎮 Multimedia: Optimized for lag-free video and audio transmission.

However, Wi-Fi Direct requires support from both devices. If you try to connect a modern smartphone to a 10-year-old laptop using this protocol, the connection will fail. In such cases, you have to fall back to the tried-and-true, but slow, Ad-Hoc mode.

Diagnosing problems and troubleshooting

Despite the simplicity of the concept, creating a stable network without a router often faces technical difficulties. The most common issue is devices seeing the network but failing to connect, displaying a "Failed to connect" error. This is often due to a security or channel mismatch.

Drivers are another common cause of failures. Adapter manufacturers may disable IBSS support in new driver versions, focusing on infrastructure mode and Wi-Fi Direct. In Windows Device Manager, under the "Advanced" tab of the adapter properties, you can sometimes find a setting Ad-Hoc Channel or IBSS Mode, which needs to be activated.

If the connection is established but the internet isn't working, you need to check your sharing settings. In Windows, this can be done through the connection properties, where you need to check "Allow other network users to connect through your internet connection." Without this step, the network will be considered a local one.

⚠️ Attention: Settings interfaces and menu item names may vary depending on the operating system version and network adapter model. If you cannot find the described options, refer to your hardware manufacturer's documentation or update your drivers to the latest version.

For diagnostics, you can use the command pingOnce connected, try pinging the IP address of the second device. If packets are being lost, try changing the broadcast channel to a less congested one (1, 6, or 11) and move the devices closer together to avoid interference.

Why can't my laptop see the Ad-Hoc network created on my phone?

Most likely, the phone created a network in Wi-Fi Direct or Hotspot mode that uses a different frequency band or encryption standard than the laptop's old adapter in IBSS mode. Also, check if the network name (SSID) is hidden.

Is it possible to play online games via Ad-Hoc?

Yes, many older games and some modern ones support LAN over Wi-Fi. However, due to the ping instability in Ad-Hoc mode, this method is more suitable for turn-based strategy games than fast-paced shooters.

What is the maximum network range without a router?

In open, interference-free conditions, the range can reach 50-100 meters, but indoors with concrete walls it rarely exceeds 15-20 meters due to the lower transmitter power in client-to-client mode.