Windows – How to get assigned IPs by hostednetwork

ipnetworkingwindowswindows 8.1wireless-networking

I just started using Microsoft Virtual WiFi or hostednetwork from Command Prompt to share my internet connection through my WiFi adapter and it's good so far! The only issue I face however is that I can't find a way to display the assigned IP addresses to the clients connected to the Virtual WiFi, is this possible? If not, then how can I get the range of IPs that the client should have been assigned to when the client connected to the Virtual WiFi?

I can see the clients on "My Network Places" however, from the client machine, when I see the assigned IP and try to ping it from the machine hosting the Virtual WiFi I get no response. So how can I get the client IP address in order to ping/connect to the client?

Example: On my client's machine when I do ipconfig it shows an empty value for Default Gateway and the IP address is 192.168.137.1. However when I go to the machine which hosts the Virtual WiFi and ping that IP, I get no response

Edit: typing netsh wlan show hostednetwork shows the current status of the Virtual WiFi, it also shows the MAC addresses of the connected clients, however it doesn't show the IPs unfortunately. Example:

> netsh wlan show hostednetwork
Hosted network settings
-----------------------
    Mode                   : Allowed
    SSID name              : "Giovanni-PC"
    Max number of clients  : 100
    Authentication         : WPA2-Personal
    Cipher                 : CCMP

Hosted network status
---------------------
    Status                 : Started
    BSSID                  : 56:5a:04:6f:88:09
    Radio type             : 802.11n
    Channel                : 11
    Number of clients      : 1
        00:19:32:45:71:da        Authenticated <-- (a client)

Edit 2: On the client's machine, there's no value for Default Gateway. I'm also not sharing an internet connection, I just want to connect to the client's machine through FTP to copy data, could this be the problem?

Best Answer

I've also had this problem, and I solved it like this:

  • create a WiFi hotspot:

    netsh wlan set hostednetwork mode=allow ssid=ProvaMi key=pippo123

    netsh wlan start hostednetwork

  • Assign the hotspot a name in the "Network and sharing center > change adapter settings" (in my case: "TestWIFI")

  • Set a static IP address for the WiFi network:

    netsh interface ip set address "TestWIFI" static 192.168.159.1 255.255.255.0 196.168.159.1

Now, using a program that provides a DHCP server on windows (http://www.dhcpserver.de/cms/), I configured the server to generate the

[SETTINGS]
IPPOOL_1=192.168.159.2-254
IPBIND_1=192.168.159.1
AssociateBindsToPools=1

Now, the DHCP server will update its own settings file (dhcpsrv.ini) with the IP address and the DNS name of any connected client.

Hope this helps.

Note: all the above (IP addresses, passwords, etc.) are examples for my test configuration. Of course you'd need to use your own settings.

Related Question