Force an IP to a MAC on virtual network (using netsh wlan command)


  1. Posts : 12
    7 32bit
       #1

    Force an IP to a MAC on virtual network (using netsh wlan command)


    Hi

    I'm creating as virtual network on my PC using netsh wlan commands and it's working great. However, at this point a need came to me to force a particular IP to a MAC address. Ofcourse it will be an IP that is allowed. All I need is to force a connecting device (with a static MAC) to have the same IP every time they connect to my virtual network.

    Is this doable?

    Lucas
      My Computer


  2. Posts : 2,497
    Windows 7 Pro 64 bit
       #2

    How are IP addresses assigned in this network? Everything depends on that.
      My Computer


  3. Posts : 12
    7 32bit
    Thread Starter
       #3

    Deffinetly dynamically, as I see my ip switches when I connect android phone couple of times. As to how it selects one, I would guess it's microsofts implementation of the whole virtual network functionality. I'm aware it can be done on the router, but I wanted to know if I can do it also on the virtual network created by netsh wlan command.
      My Computer


  4. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #4

    virtual network? You mean this Create a Virtual Wireless Router With Windows ?
      My Computer


  5. Posts : 12
    7 32bit
    Thread Starter
       #5

    Correct. Sorry if I'm using a lot of misplaced terms. Not really a network guy, my appologies.
      My Computer


  6. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #6

    It works great and there are a few third party GUI programs for it.
    But the built-in DHCP sever is not so smart. AFAIK you cannot instruct it to map a MAC address to an TCP/IP address so it gets kind of a fixed ip address.

    But why do you want that anyway? Normally you want to use a fixed ip adress for servers [webserver, ftp server, mail server et cetera] only (so other machines can access it by using a predefined ip address). But why in this case?
      My Computer


  7. Posts : 12
    7 32bit
    Thread Starter
       #7

    I found a way to connect Android device to ADB over wifi. I can do it manually, but much better way is to write a batch script (which I did already) that will run commands automaticaly upon clicking on a shortcut icon. It works great until the dynamically assigned IP changes, after which I need to change the IP written in the script. That's why I need the IP of the android device to remain static.

    I can set it on the android device directly, but that goes as long as the "device asking politely to get that IP", which never guarantees that it will get that IP everytime. It is my backup plan, but I wanted to check if I can do it on the host side.

    Does that answer your question?
      My Computer


  8. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #8

    What's ADB... you meand Android Debug Bridge?
    ADB connect to 10.0.0.3 (just an example you want it fixed).

    I think I can't help you further. Not a real disaster anyway.
      My Computer


  9. Posts : 12
    7 32bit
    Thread Starter
       #9

    Yes, ADB = Android Debug Brigge

    I'm not talking about internal port or connection of ADB. I'm talking about connecting ADB to Android device. That entitles the Android Device can have any IP. My goal is to have this IP fixed, that's what this thread is all about.

    Thanks for the willingness to help. Maybe someone else will be able to give me some hint.
      My Computer


  10. Posts : 12
    7 32bit
    Thread Starter
       #10

    Someone else? :/
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 04:35.
Find Us