Saturday 31 August 2019

networking - Change default gateway on windows hosted network


I used the following command to create a hosted network.


netsh wlan set hostednetwork mode=allow ssid=[ssid] key=[keyphrase]


I would like to change the default gateway and given IP ranges from 192.168.137.1 to say 192.168.10.1. I tried everyting but couldn't get it to work. Is it even possible?



Answer



Unfortunately this isn't configurable in the network settings in Windows and has to be changed in the registry editor. In the run prompt enter regedit. Next navigate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\services\SharedAccess\Parameters. Change just StandaloneDhcpAddress if your only using Wireless Hosted Network but if you are sharing internet to it with ICS then also set ScopeAddress to 192.168.10.1.


You will probably have to run netsh wlan stop hostednetwork and then netsh wlan start hostednetwork for the change to take affect. If you are sharing internet to the wireless then you might need to re-share in the windows network settings as well for the changes to take affect. Depending on your setup you might have issues with IP conflicts if you have anther device giving out IP address on 192.168.10.xxx


See this superuser answer for reference.


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...