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?


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.


arp -a will dump out your arp (or Address Resolution Protocol) tables - this is the mapping of ip addresses to mac address

then look for all dynamic addresses under the interface you are using - the output looks something like this/

Interface: 192.168.0.106 --- 0xe
  Internet Address      Physical Address      Type
  192.168.0.1           c4-a8-1d-84-f3-59     dynamic
  192.168.0.101         00-1e-8f-76-95-5e     dynamic
  192.168.0.105         00-10-75-57-7a-e8     dynamic
  192.168.0.126         00-1c-25-20-1a-a0     dynamic
  192.168.0.255         ff-ff-ff-ff-ff-ff     static
  224.0.0.22            01-00-5e-00-00-16     static
  224.0.0.251           01-00-5e-00-00-fb     static
  224.0.0.252           01-00-5e-00-00-fc     static
  224.0.0.253           01-00-5e-00-00-fd     static
  239.2.0.252           01-00-5e-02-00-fc     static
  239.192.152.143       01-00-5e-40-98-8f     static
  239.255.255.250       01-00-5e-7f-ff-fa     static
  255.255.255.255       ff-ff-ff-ff-ff-ff     static