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

lukair

New member
Local time
10:40 AM
Messages
12
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 My Computer

OS
7 32bit
How are IP addresses assigned in this network? Everything depends on that.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Pro 64 bit
CPU
Xeon W3520
Memory
8 GB
Graphics Card(s)
Nvidia Geforce 210
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 My Computer

OS
7 32bit

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
Correct. Sorry if I'm using a lot of misplaced terms. Not really a network guy, my appologies.
 

My Computer My Computer

OS
7 32bit
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 My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
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 My Computer

OS
7 32bit
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 My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
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 My Computer

OS
7 32bit
Back
Top