How to change the dhcp range alloted through ICS in Windows 7 to 192.168.1.x range?

Solution 1:

I googled for "internet connection sharing" "windows 7" internal subnet, and the first hit was Microsoft's knowledge base article KB230148 How to Change the IP Range for the Internet Connection Sharing DHCP service which was last reviewed in 2011, was considered at the time to be "retired", and was stated as applying to:

  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Professional
  • Windows 7 Home Basic
  • Windows 7 Home Premium
  • Windows 7 Professional
  • Windows 7 Ultimate

From that article:

To change the IP address that is assigned to the host and the IP address range that is used by the DHCP service on the Connection Sharing host, use Registry Editor to change the following values. These values are located in the following folder: HKLM\System\CurrentControlSet\services\SharedAccess\Parameters

(REG_SZ) ScopeAddress
(REG_SZ) StandaloneDhcpAddress

The ScopeAddress value is set to the address range that you want to use with Connection Sharing. The StandaloneDhcpAddress value is the address range that is used when Virtual Wi-Fi/SoftAP is enabled. For both values, a network mask of 255.255.255.0 is used and is not configurable.

So, it seems to me that to get the effect you are after you'd set ScopeAddress and StandaloneDhcpAddress to C0A80000 hex. That will cause Windows to assign ICS clients IP addresses out of the range 192.168.0/24 (CIDR). (If the value in the question title is correct and the one in the question is not, use C0A80100 instead.)

However, doing so will likely cause IP address collisions because both your router and your laptop are now assigning IP addresses out of the same address pool. And even if by sheer stroke of luck it doesn't cause address collisions, chances are it'll wreak havoc with IP routing either on your laptop, on ICS clients, or quite possibly both. For that reason, there might actually be safeguards in place to prevent a setup like this.

If you explain why you so much want the IP address range of ICS clients to be the same as the (from that host's perspective) external IP subnet of the ICS server, maybe someone can propose a solution that will actually work, and work reliably.