Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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

31 Oct 2014   #1
lukair

7 32bit
 
 
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 System SpecsSystem Spec
.
31 Oct 2014   #2
LMiller7

Windows 7 Pro 64 bit
 
 

How are IP addresses assigned in this network? Everything depends on that.
My System SpecsSystem Spec
31 Oct 2014   #3
lukair

7 32bit
 
 

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 System SpecsSystem Spec
.

31 Oct 2014   #4
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

virtual network? You mean this Create a Virtual Wireless Router With Windows ?
My System SpecsSystem Spec
31 Oct 2014   #5
lukair

7 32bit
 
 

Correct. Sorry if I'm using a lot of misplaced terms. Not really a network guy, my appologies.
My System SpecsSystem Spec
31 Oct 2014   #6
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

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 System SpecsSystem Spec
31 Oct 2014   #7
lukair

7 32bit
 
 

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 System SpecsSystem Spec
31 Oct 2014   #8
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

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 System SpecsSystem Spec
31 Oct 2014   #9
lukair

7 32bit
 
 

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 System SpecsSystem Spec
03 Nov 2014   #10
lukair

7 32bit
 
 

Someone else? :/
My System SpecsSystem Spec
Reply

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




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
netsh wlan show profiles: Access is denied
If I try to run the command: netsh wlan show profiles even if I run the command prompt with administrative privileges, I receive back: Function WlanGetProfileList returns error 5: Access is denied. Any help would be much appreciated, thanks.
Network & Sharing
How to force my Intel Proset WLAN to connect with 802.11n speed?
I have a new notebook (with Intel ProSet Wireless chip) which should be able to connect to the WLAN-Rouer with 802.11 n speed. The WLAN-Router/AP itself offers as well 802.11 n feature. Currently for testing purposes the WLAN-Router/AP stands just 1 m distance with no wall in between. ...
Network & Sharing
netsh mbn show interfaces results in command not found on Win7 64Bit
Hi, I'm trying to run "netsh mbn show interfaces" from a .bat or .jar file on a Win7 64bit system but every time I run my file, it results in "The following command was not found mbn show interfaces". When I run that same command in a cmd.exe prompt, the result is correct and as expected. ...
Network & Sharing
what is the windows 7 form of this netsh command?
netsh fire ad porto tcp 134 p134 ENABLE SUBNET I want to open port 134, TCP, for local subnet. it's incoming so for a server running on port 134. and only my LAN should have access.
System Security
netsh advfirewall add- how to prevent multiple entries by command line
Hi Im using a little script to enter "add rule" to the firewall in Win 7 f.e. netsh advfirewall firewall add rule name="Firefox Updater" dir=out program="%ProgramFiles% (x86)\Mozilla Firefox\updater.exe" enable=yes profile=any action=allow This works fine so far. But if i start the...
System Security
is there a command line to force to check up for update
Hi is there a command line to force windows 7 to check for updates? i know it checks ever day for update while xp at every boot well is there a command line to run in the start menu or schedule to force windows7 to check? i know i can click on the update module to perform an immediately...
Windows Updates & Activation


Our Sites

Site Links

About Us

Find 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 21:23.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App