Problem assigning a static IP

deadmeadow

Reputable
Mar 7, 2014
7
0
4,510
I'm trying to assign a static IP to my computer. My gateway to my router is 192.168.1.1
I got all the info off of cmd ipconfig /all (subnet, DNS servers, default gateway)
So I go into my adapters ipv4 settings and try to manually change them and I tried assigning a static IP of 192.168.1.25, then I close out and bam my internet stops working! So I go back into the ipv4 settings and here I find the computer deletes the IP I'm trying to assign it and changes it to "192.168.137.1" automatically.
So I tried a bunch of other IP's and same thing.

What's going on? in my router's port forwarding settings it says I HAVE to use a 192.168.1.xx IP so I don't even think I can use 137.xx even if I could it wouldn't matter since the internet goes out.. The only time the internet will work is when the settings are to detect automatically. Right now they are on detect automatically and CMD is showing my IP is 192.168.1.110 (dynamic though of course so no point in trying to port forward with that)

Could anyone help me out?? Thanks! :/
 
Besides assigning the IP address you want to have (192.168.1.25), you have to state a subnet mask (255.255.255.0), the gateway (192.168.1.1), and in order for your internet browsing to work, at least one DNS server address (this depends on your internet service provider, you should get that DNS address from them). All this info goes into the same window in the IPv4 config window of your ethernet device. Make sure the address you want to use is not already in use by some other device (phone, laptop or other). That should be all...
 

deadmeadow

Reputable
Mar 7, 2014
7
0
4,510
thanks for the reply but I did that.
192.168.1.25 for IP (not in use but tried a bunch of others to be sure), gateway I chose 192.168.1.1 since that's the IP I used to connect to router, and subnet mask and DNS I got from the info on CMD Ipconfig /all (matches the same info under the status tab on my router page) and then I click to save settings but then for some reason it automatically changes the IP I set to 192.168.137.1 instead and then my internet doesn't work until I reset the settings back to automatic.
 
In the router configuration, there might be a range of IP addresses allocated to the DHCP server: if the one you are trying to use is in that range, maybe the router won't allow you to take it manually, and assign some other instead. Not sure if this will help, but it's worth trying :)