Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I connect to 8 different Access Points, each with a separate subnet and each location does not allow DHCP.

I want my computer to change my IP address to an assigned IP address per location based on which access point I am connected to without having to run a netsh script each time.

Where is the windows settings for such functionality? If there is no windows functionality built in, is there a standard method or service that people commonly use for this desired functionality?

share|improve this question
    
Wireless networks not running DHCP? Now, that's odd. –  Iszi Sep 19 '11 at 15:05
2  
For this, I think DHCP is the "standard method or service that people commonly use". :-( –  RedGrittyBrick Sep 19 '11 at 15:07
    
If it's only one SSID and multiple locations, the only solution I see is a batch file/powershell script that checks BSSID and sets the IP manually. And yes, DHCP is the way to get that functionality. –  hbdgaf Sep 20 '11 at 14:34
    
Have you looked at this post? superuser.com/questions/77132/… –  CharlieRB Oct 11 '11 at 20:17
add comment

1 Answer

Windows allows you to fallback to an alternative Static IP, which is covered in this related question:

If you configure each AP to use Automatic Private IP Addressing, then multiple access points can be configured to automatically assign IP addresses without DHCP:

The Internet Assigned Numbers Authority (IANA) has reserved 169.254.0.0-169.254.255.255 for Automatic Private IP Addressing. As a result, APIPA provides an address that is guaranteed not to conflict with routable addresses.

After the network adapter has been assigned an IP address, the computer can use TCP/IP to communicate with any other computer that is connected to the same LAN and that is also configured for APIPA or has the IP address manually set to the 169.254.x.y (where x.y is the client’s unique identifier) address range with a subnet mask of 255.255.0.0. Note that the computer cannot communicate with computers on other subnets, or with computers that do not use automatic private IP addressing. Automatic private IP addressing is enabled by default.

You may want to disable it in any of the following cases:

- Your network uses routers.

- Your network is connected to the Internet without a NAT or proxy server.

Unless you have disabled DHCP-related messages, DHCP messages provide you with notification when you change between DHCP addressing and automatic private IP addressing. If DHCP messaging is accidentally disabled, you can turn the DHCP messages back on by changing the value of the PopupFlag value in the following registry key from 00 to 01:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\DHCP

OSX allows mixing local and remote access points as well via link-local addressing.

References

Dynamic Configuration of IPv4 Link-Local Addresses

IPv6 Address Types

Mixing link-local IP addresses and routable IP addresses

Zero Configuration Networking

Airport: About Using Link-Local Addressing

Service Publication: An Example

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.