- The hosted network enables Virtual Wi-Fi (STA/VSTA) and SoftAP with WPA2-PSK/AES.
- To share the Internet, use ICS with the virtual adapter, not network bridges.
- In Windows 10/11, Mobile Hotspot makes it easy to create a hotspot.
- Netsh allows you to configure, audit and automate WLAN, IPv4, DNS and firewall.

Set up a virtual WiFi network in Windows with netsh wlan It is a simple way to share your connection without installing any extraneous software; if you prefer a graphical interface, there are programs to turn your PC into a Wi-Fi routerThis guide brings together everything you need to know: from hosted network technology (SoftAP), commands key, driver compatibility, and the official Windows 10/11 mode (Mobile Hotspot), to practical solutions if something goes wrong.
In addition to the virtual Wi‑Fi commands, we will review Tricks useful for netsh for IPv4, firewall or DNS, and alternatives such as apps from third parties or use your smartphone as a hotspot. The goal is to have at hand, in a single article, all knowledge necessary to create and manage your WiFi hotspot with guarantees.
What is Windows Hosted Network (Virtual Wi-Fi and SoftAP)
From Windows 7 and Windows Server 2008 R2 with the WLAN service, the system can virtualize a physical Wi‑Fi adapter into multiple logical ones to enable two functions: Virtual Wi‑Fi (STA/VSTA) and a software access point SoftAP. Both functions go hand in hand: when you activate the hosted network they are enabled simultaneously and, in Windows, cannot be activated separately.
With this feature, a single physical wireless adapter can remain connected as a client (STA) to a normal AP and, at the same time, announce your own AP virtual network for other devices to connect. However, you need an adapter and driver that support the hosted network and Microsoft's WLAN driver model; if the driver doesn't implement the feature, it will not work. If you need help with hardware and drivers, learn how to manage virtual network adapters.
Virtualization creates up to three logical adapters: a station adapter STA (client), an access point adapter AP for SoftAP and, optionally, a virtual station adapter VSTA that some manufacturers use to extend functionality. The STA behaves like the physical one and is always present; the AP appears when you invoke the hosted network (and disappears when you disable it); the VSTA initialize and release the service provider (IHV).
Windows binds logical adapters to NDIS ports: the STA goes to port 0The AP and VSTA connect to the next available port and maintain the connection until virtualization ends. The following combinations are valid: STA; STA+AP; STA+VSTA; or STA+AP+VSTA, but the hosted network is essential. Enabled in all cases except pure STA.
Important: Microsoft prohibits Layer 2 bridging between the AP adapter and any other adapter on the system (and applies the same restriction to the VSTA). In practice, if you want to share the Internet, you must use ICS (Internet Connection Sharing), not a network bridge; if you're looking for additional options, check out how use your PC as a router to understand other alternatives.
There are other limitations: the SoftAP does not perform DNS resolution. If there is no external DNS accessible with ICS, full name resolution between devices linked to the SoftAP will only work if all devices mark the SoftAP network as Private (HOME or WORK). And be careful: ad hoc networks and SoftAP are mutually exclusive on the same hardware; if you start one, the other turns off. In case of resolution problems you can check guides on DNS server error.

Security, keys and WPS on the hosted network
Windows Hosted Networking requires WPA2‑PSK with BEA. The primary (system) key is a value of up to 63 characters that Windows automatically generates the first time you invoke the hosted network and is Persistent until you regenerate it with netsh or through the corresponding API.
To make life easier for the user, there is also a more manageable secondary (user) key. This key is defined by the user or an application, it can be temporary or persistent, and is managed using netsh commands or the API. There can be exactly one primary key and at most one secondary key; devices provisioned via WPS receive the primary key, while those configured manually can use either.
When you change a key, the devices that stored the old value they stop connecting until you reconfigure them with the new credential; those using the other key, if not changed, continue to work. Additionally, Windows allows applications to register to receive WLAN notifications specific to the hosted network, which helps react when change the state or the properties of the SoftAP.
Common scenarios: Wireless PAN and ICS
The simplest use is to mount a Wi‑Fi personal area network between your PC and other devices. With SoftAP enabled, any WPA2‑PSK/AES compatible device can join and share data with you or with each other, just like a home AP. Plus, you can scan devices connected to the network to see who is joined to the hotspot.
If what you are looking for is to share the Internet, the Internet Connection Sharing (ICS). The public interface of ICS is the one that has outgoing (Ethernet, Wi-Fi, or cellular), and the private interface is the SoftAP virtual adapter. In many configurations, the STA of the same physical adapter can be the public interface if you are connected via Wi-Fi to another AP and, at the same time, announce your SoftAP.
An interesting note: Hosted Network integrates with WPS. Windows can invoke SoftAP in the background to provision a device to a physical AP via WPS. does not support WPS, injecting the profile transparently.
Essential netsh wlan commands for virtual Wi-Fi
With netsh wlan You can enable/disable the hosted network, set the SSID and user key, start it, stop it, check its status, and regenerate keys. Make sure to run the console as administrator.
To configure the SoftAP with a name and password defined by you (user key): adjust these values to your liking.
netsh wlan set hostednetwork mode=allow ssid=MiRedVirtual key=MiContraseñaSegura keyUsage=persistent
To start and stop the hosted network, use these commands Stage:
netsh wlan start hostednetwork
netsh wlan stop hostednetwork
If you need to completely enable or disable the feature on your system, use this setting overall:
netsh wlan set hostednetwork mode=allow
netsh wlan set hostednetwork mode=disallow
Check the status, security and connected devices with these orders diagnosis:
netsh wlan show hostednetwork
netsh wlan show hostednetwork setting=security
netsh wlan show settings
To renew the system key generated by Windows, use the option refresh:
netsh wlan refresh hostednetwork data=key
Tip: First, check if your adapter supports hosted networking. In the output, look for the "Hosted Network Allowed" and confirms that it is "Yes".
netsh wlan show drivers
Internet Sharing: ICS vs. Network Bridging
If your PC goes to the Internet via Ethernet and you want to distribute Wi‑Fi from the SoftAP, enable ICS by checking the box Shared use in the properties of the interface with access (public) and choosing the virtual adapter as private. This is the path recommended by Windows for mask and give IP to AP clients.
Some guides suggest bridging the Ethernet and wireless NICs; however, Microsoft prohibits this. bridge at level 2 between the AP adapter and any other adapters. In my experience, ICS works best for SoftAP; the bridge can fail or be blocked by the network stack itself, so avoid it when using hosted network.
Windows 10 and 11: Mobile Hotspot
In Windows 10 and Windows 11 There is a native and very convenient way to share the Internet: Mobile wireless coverage areaIt works with Wi-Fi, Ethernet, or mobile data connections, saving you from struggling with commands if you don't need them.
In Windows 10, you can turn it on from the Action Center or the network icon, then go to Settings > Network & Internet > Mobile wireless coverage area to view or change the SSID, password, and band (2,4 or 5 GHz if your hardware allows it). It's immediate and very amicable.
In Windows 11, go to Settings > Network & Internet > Mobile Hotspot. Choose which interface to share from, how to share (Wi-Fi or Bluetooth, Wi-Fi is best), and tap Edit to customize name, key and band. Turn on the switch and connect your devices by searching for the SSID and entering the password.

Compatibility, drivers and troubleshooting
If when creating the network you see the SSID from your mobile but there is no Internet, first check ICS: in the interface properties with output mark Allow other users and select the hosted network adapter as private. Avoid bridges and confirm that there are no ad hoc networks on the same adapter, since SoftAP and ad hoc are incompatibleIf you experience frequent disconnections, consult solutions for disconnections.
Check hosted network support with netsh wlan show drivers. If "Hosted Network Allowed" is set to "No", the driver does not implement the feature. Some chipsets (e.g., certain older Qualcomm Atheros chipsets) may create the SSID but fail to share. In that case, try updating drivers, using the Windows 10/11 mobile zone, or using a enforcement external; it may also be helpful to review guides on Wi-Fi programs.
Please note that SoftAP stops if the computer goes to sleep, hibernates, or restarts, and does not automatically resume when you resume. If you need to Boot With the system, you can create a script .bat with the commands of Home and schedule it with Task Scheduler to run with privileges at login.
If it does not resolve, check the firewall: open the ports or create rules if any application requires it, and make sure that the SoftAP network profile is Private to facilitate local resolution when there is no external DNS. Finally, restart the TCP/IP stack if you suspect parameter corruption and, if applicable, change DNS in Windows 11 before trying again:
netsh int ip reset
netsh int ip reset C:\tcpipreset.txt
Netsh in depth: syntax, parameters, and useful examples
Netsh is a very powerful utility for displaying and modifying the Network Configuration on Windows (2000, XP, 7, 8, 10, 11, Server…). You can run it from PowerShell or from the Symbol of the system, with specific parameters and contexts such as wlan o IPv4 interface.
Its general syntax supports aliases, contexts, remote execution, user/password, and scripts, allowing automate complex settings in a couple of commands:
netsh Usuario]
Quick Tips: With netsh -c wlan you enter the Wi‑Fi context; with netsh /? or context-sensitive help. You can see the available options and their exact syntax. This reduces typing errors and saves you time. pruebas.
To inventory interfaces and choose which one to configure, first list their state and type:
netsh interface show interface
Assigning a static IP to an interface (for example, Wi-Fi) with gateway and metric in a single line is as simple as this set:
netsh interface ipv4 set address name="Wi-Fi" static 192.168.1.40 255.255.255.0 192.168.1.1 1
Working with saved Wi-Fi profiles is also useful: view profiles, change the connection mode to manual (or return to auto) and control automatic connection to specific networks.
netsh wlan show profiles
netsh wlan set profileparameter name="NombreDeRed" connectionmode=manual
netsh wlan set profileparameter name="NombreDeRed" connectionmode=auto
Viewing IPv4/DNS parameters per interface helps diagnose slow resolutions or routes wrong both on Wi‑Fi and Ethernet:
netsh interface ipv4 show address "Wi-Fi"
netsh interface ipv4 show dns "Wi-Fi"
netsh interface ipv4 show address "Ethernet"
netsh interface ipv4 show dns "Ethernet"
For the firewall, you can open a TCP port (e.g., 80) or delete specific rules if you no longer need them. Be careful with the names of ruler when deleting:
netsh advfirewall firewall add rule name="Open Port 80" dir=in action=allow protocol=TCP localport=80
netsh advfirewall firewall delete rule name="Open Port 80"
netsh advfirewall reset
Configure DNS (primary and secondary) or return the interface to DHCP He is also direct with these orders:
netsh interface ipv4 set dnsservers name="Wi-Fi" static 8.8.8.8 validate=no
netsh interface ipv4 add dnsserver name="Wi-Fi" address=8.8.4.4 index=2 validate=no
netsh interface ipv4 set address name="Wi-Fi" dhcp
netsh interface ipv4 set dnsservers name="Wi-Fi" dhcp
Configuration backup? You can dump a dump to text and restore it if something goes wrong after a lab test or a hasty adjustment:
netsh dump >> C:\redes\configuracion.txt
netsh -f C:\redes\configuracion.txt
Not everything is an advantage: netsh lacks a graphical interface, its syntax is prone to errors If you're not familiar with it, many actions require administrator privileges and some features have become somewhat misaligned with very modern networks (although it's still useful and powerful).
IPv4 and IPv6: Context and Considerations
To understand some of the settings, it's helpful to remember what IPv4 offers compared to IPv6. IPv4 has been underpinning the Internet for decades, with 32-bit and backward compatibility. huge across devices and networks. It's simple, and with NAT, it's saved public addresses for years.
Its cons are known: limited address space of 4.300 billion, NAT configurations complex that can affect applications and weaker native security compared to IPv6. For all these reasons, IPv6—with 128 bits, more efficient headers, and integrated security—is the evolution natural, although the transition is gradual.
Third-party applications to create a hotspot
If you prefer a graphical interface, there are very mature tools. Connectify It is one of the most popular and easiest; its free version covers the basics, and the PRO/MAX editions add advanced features, even acting as repeaterThere are also compilations to help you choose.
Other options have been available, although some are no longer officially distributed. Baidu hotspot y Virtual Router Plus were popular but are no longer available from their original links. However, there are utilities such as OSToto Hotspot (previously 160WiFi), MyPublicWiFi o mHotspot that continue to offer a balance between simplicity and control (blacklists, customer registration, etc.).
Create a hotspot from your mobile
If you need to get by without touching your PC, using your smartphone as a hotspot is a solution fast. In Android, search for “Telephone sharing and Wi-Fi hotspot” or similar, define SSID, security, password and, if your phone allows it, choose the one band (2,4 / 5 GHz).
En iPhone, go to Settings > Personal Hotspot and turn on “Allow others to connect.” In iOS You can only share mobile data (not the Wi-Fi you're connected to), but for most scenarios it's sufficient and stable.
Advantages of sharing Internet from your PC
Setting up your own hotspot gives you more to maximise security and your enjoyment. than relying on public Wi-Fi. You control who comes in, what password they use, and avoid open or dubious networks where your credentials can be exposed without you even realizing it. account.
You also gain privacy: you don't need to reveal your main Wi-Fi password to your visitors, you can create a specific SSID with its own password and delete it when you're done. And if your router doesn't have a guest network, this is a quick alternative.
Stability is another plus: many public networks are congested, with frequent outages. In your hotspot, you control how many devices you connect and the quality of the signal. The result is often a much smoother experience.
And when it comes to speed, there's little comparison: shared Wi-Fi in cafes or hotels often runs at a snail's pace. By creating your AP, you reduce the competition for bandwidth and make the most of your actual connection.
With all the above, setting up a virtual Wi-Fi network with netsh or the Windows mobile hotspot is a powerful, flexible, and secure option for sharing your connection, managing WPA2-PSK/AES keys, relying on ICS instead of bridges, and combining it with netsh utilities for IPv4, firewall, or DNS; if you respect the limitations (compatible drivers, suspension, network profiles) and choose the right path in Windows 10/11, you will have a reliable and easy-to-maintain hotspot In day to day.
Passionate writer about the world of bytes and technology in general. I love sharing my knowledge through writing, and that's what I'll do on this blog, show you all the most interesting things about gadgets, software, hardware, tech trends, and more. My goal is to help you navigate the digital world in a simple and entertaining way.