Questions tagged [netsh]
215 questions
28
votes
9 answers
Make IP address of WSL2 static
I am running an SSH server within WSL2 on a WIN10 machine. To make that work I am using:
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=22 connectaddress=172.19.237.178 connectport=22
This works fine initially. 172.19.237.178…
Nick
- 1,263
- 2
- 12
- 15
24
votes
1 answer
In what scenarios will I use `netsh http add urlacl`?
I'm trying to understand in which scenarious I will need to use such command :
netsh http add urlacl url=http://server1:1234/ user=Everyone
Is it like using the hosts file where I can connect a specific address to my computer ? (I don't think…
Royi Namir
- 5,598
- 14
- 47
- 70
22
votes
8 answers
Force refresh (re-scan) wireless networks from command line?
How can I force Windows to re-scan for available wireless networks from the command line?
(i.e. I'm looking for the command-line equivalent of pressing F5 on the GUI.)
user541686
- 23,663
- 46
- 140
- 214
22
votes
6 answers
Open a test TCP connection to a specified IP/Port
I'm looking for a tool that works across windows (xp through 7) that will allow me to open a TCP connection to a specified ip and port. This functionality used to exist in windows xp (netsh diag connect iphost ), but the Netsh diag commands seem to…
TheEmpireNeverEnded
- 606
- 1
- 4
- 9
17
votes
2 answers
How to redirect/route IP address to another IP address?
How to redirect/route an IP address to another IP address?
E.g.: 10.10.10.10 -> 20.20.20.20 and then when I type in 10.10.10.10 in my browser, it connects to 20.20.20.20.
Let's assume 10.10.10.10 and 20.20.20.20 are external IP addresses.
yarek
- 581
- 3
- 8
- 18
11
votes
1 answer
Find who excluded port range
When trying to start docker container, the following errors is shown:
Cannot start service : Ports are not available: listen tcp 0.0.0.0:5601: bind: An attempt was made to access a socket in a way forbidden by its access…
cdalxndr
- 210
- 2
- 5
9
votes
4 answers
How to force enable "Soft AP" to allow hostednetwork?
Question Status: Unresolved - 7/10/17
My WiFi Adapter, Intel(R) Dual Band Wireless-AC 3165 v19.20.0.6, supports the use of creating hosted networks by "Soft AP," I know so because it has been able to before.
But my issue comes that I can no longer…
El8dN8
- 1,786
- 1
- 12
- 23
8
votes
4 answers
netsh wlan add profile not importing encrypted passphrase
I exported a wireless network connection profile from a Windows 7 machine correctly connected to a WiFi network with a WPA-TKIP passphrase. The exported xml file shows the correct settings and a keyMaterial node which I can only guess is the…
matpie
- 1,610
- 2
- 20
- 26
8
votes
4 answers
netsh error: The process cannot access the file because it is being used by another process
It is a server running Windows Server 2016 Essentials. Intuit, in all their infinite wisdom, wanted me to run this command on our file server:
netsh int ipv4 add excludedportrange protocol=udp startport=55368 numberofports=5
The error message I get…
user900344
8
votes
3 answers
"netsh advfirewall firewall delete rule name program" syntax not working
I'm trying to delete a Windows Firewall rule from command line using netsh. I'm trying with the below syntax; however, it is not working for me result wise.
netsh advfirewall firewall delete rule program="C\Program Files…
Riccardo La Marca
- 243
- 1
- 4
- 18
7
votes
2 answers
Wireless SSID in Windows 8.1 changes to " 2" upon first connection
Note: I would rather comment David's answer in: Unable to connect to wireless after upgrading to Windows 8.1 from 8, but I don't have the required 50 reps to do so.
I recently upgraded to Windows 8.1 and today since I had forgotten my router access…
maja
- 329
- 6
- 15
7
votes
2 answers
Restoring password of a WIndows hosted network
I have created a hosted network in my windows7 system. The netsh wlan show hostednetwork command gives the output
Hosted network settings
-----------------------
Mode : Allowed
SSID name : "rambo"
Max…
Nandakumar V
- 173
- 1
- 1
- 5
7
votes
1 answer
netsh, block all IP addresses in a text file?
Is there a way for me to import a .txt file (with IP addresses on each line) into Windows Firewall?
I want each of the IP addresses to be completely blocked. That would also provide an easy way to unblock an IP address in the .txt file later on (in…
user1961685
- 73
- 1
- 3
7
votes
6 answers
How can I start hostednetwork on Windows 7?
When I type in admin console command to start hostednetwork netsh wlan start hostednetwork it gives me this: The hosted network couldn't be started.
The group or resource is not in the correct state to perform the requested operation.
There is a…
Pirozek
- 181
- 1
- 2
- 6
7
votes
1 answer
How to toggle Wi-Fi in Windows 10 via the command line?
If I try to connect to a wireless network using netsh wlan connect when the Wi-Fi toggle switch is off, the following error is displayed:
Function WlanGetAvailableNetworkList returns error 2150899714:
The wireless local area network interface is…
user610242