Making a Windows 11 hotspot without an internet connection

Making a Windows 11 hotspot without an internet connection

Software

Until now, I have been running my mount and cameras directly from a Windows 10 laptop. While that has worked fine, it has always meant needing to set up my laptop pretty near the telescope assembly to allow all the cables to connect. More importantly, it also means that I have to keep a Windows laptop around instead of my normal Linux daily driver. (I use a celestron mount and use CPWI). So, I finally decided to buy a small Windows mini-PC to run the mount and camera. I settled on a Mele Quieter3C mini-PC.


My desire is to keep the equipment that I need to haul around with my setup to a minimum, so I wanted to avoid the need for any sort of router in the setup. Ideally, the mini-PC should host a hotspot that I can connect to and then use RDP to access the mini-PC. Sounds simple enough, except that it seems that Windows 11 doesn't have the ability to host a wireless network if it isn't sharing an already existing wifi or ethernet connection. Why Microsoft makes such decisions is beyond me; it seems that the two capabilities, while often useful together, are completely independent.


Since it took me about 3 days to find a solution (finally found the key information on this superuser question, I thought I would provide a write-up in hopes that others will find it more readily than I found that answer.


Hosting a hotspot with Windows 11 without another network to share:

1. Create a loopback interface

In order to create a hotspot, Windows 11 needs to create a tether to an existing network connection. Presumably, Microsoft developers couldn't imagine a use for a hotspot except for sharing an internet connection. For those of us who set up equipment far from civilization, this isn't the use case. So, in order to allow us to create the hotspot, we need to create a network that can be shared.


Open Device Manager


This can be done by right clicking on the start menu and clicking Device Manager.


Select the computer name at the top of the list


In the Action menu, select "Add legacy hardware"


Click the "Next" button


Select "Install the hardware that I manually select from a list"


Select "Network Adapters"


Click the "Next" button


On the left side, select "Microsoft"


Note: It may take a moment for these lists to appear and populate, depending on the speed of your mini-PC


On the right side, select "Microsoft KM-TEST Loopback Adapter"


Click the "Next" button


Click the "Next" button


Click the "Finish" button


Open the Control Panel This can be done by opening the start menu and searching for "Control Panel"


Click "Network and Internet"


Click "Network and Sharing Center"


Click " Change adapter settings" on the left


Rename the KM-TEST loopback adapter to "Loopback"


For me, it didn't work to right click and select "Rename". I had to select the device, press the F2 key, then type the new name


Restart the mini-PC


The rename did not propagate through the system until I restarted. There may be another way to force propagation, but restarting is easy enough.


2. Create a start up script to start a hotspot bound to the loopback interface at boot time

Because I want this to run headless and won't have a way to start it manually, this needs to start automatically at boot time. To do this, I have set my user to automatically log in and then created a batch script to start the hotspot at startup.


1. If not already done, set up automatic login. Instructions for this can be found at -this Microsoft answer-. Edit June 2025: In my most recent attempts, this page was no longer accessible. There is a blog here that walks through the steps.


2. Open windows run command (Keyboard shortcut: Win+r)


3. Type shell:startup and click okay


4. Create a new batch script in the startup location with the following contents:


powershell -ExecutionPolicy -ByPass "$profile = [Windows.Networking.Connectivity.NetworkInformation,Windows.Networking.Connectivity,ContentType=WindowsRuntime]::GetConnectionProfiles() | where {$_.profilename -eq 'loopback'}; $tether = [Windows.Networking.NetworkOperators.NetworkOperatorTetheringManager,Windows.Networking.NetworkOperators,ContentType=WindowsRuntime]::CreateFromConnectionProfile($profile); $tether.StartTetheringAsync()"


I saved this as StartMobileHotspot.bat


3. Change keep the mobile hotspot active

Windows 11 power saving features default to disable the hotspot when nothing is connected. Because I want to be able to connect at any time through the night and not necessarily remain connected, I disabled these settings. I found these steps at this Beebom site


Start your hotspot, if not already started, by running the script from Section 2.


Disable power saving from the hotspot


Open Settings (keyboard shortcut: Win+i


Click "Network & Internet"


Click "Mobile Hotspot" (not the toggle)


Set the toggle for "Power Saving: When no devices are connected, automatically turn off mobile hotspot" to "Off"


Change the power management settings to prevent it from turning off the wireless adapter


Open Device Manager


Expand "Network Adapters" in the list


Right click on your wireless adapter and select "Properties"


Click on the "Power Management" tab


Deselect the "Allow the computer to turn off this device to save power" check box


Click "OK"


4. Enable remote desktop

In order to remote from my laptop or tablet, I needed to allow remote desktop connections on the mini-PC


Open Settings (shortcut Win+i)


Click on "System"


Click on "Remote Desktop"


Set the "Remote Desktop" toggle switch to "On"


This was all I needed to do to set up a hotspot using Windows 11 mini-PC to allow me to connect and remotely control the computer from my laptop while out in the field.

留言

此網誌的熱門文章