Static Ip problems

chairsgotoschool

Honorable
Oct 6, 2012
277
0
10,810
Hello. Usually I have no issues with stuff static ip and forwarding ports but recently I have.

I'm on a home network and I'm trying to setup a static ip so I can forward ports to play games with my friends (like gmod, terraria, minecraft) I have done it in the past countless times and have run into this issue but this time it is persistent.

My router is a TP-LINK TL-WR841N I just got it today but my old router (old t mobile hot spot linksys) did it too.

I go through the steps on my router to setup a static ip, putting in my mac address, the ip then going through the steps on my pc in the network settings place. then when I open command prompt and type ipconfig/all is says ipv4 192.168.0.50 (preferred)

Anyone know why it's preferred and how to fix it. I tried going through with the port forwarding but it doesn't seem to work. I have had this issue before where it would say preferred and not work but after a while a messing around it went away and worked, I've been messing around for a few hours now and no luck. any help is appreciated, thanks.
 

chairsgotoschool

Honorable
Oct 6, 2012
277
0
10,810
I don't want to get it from my isp since it cost money.

here's what I did in order. went to router settings
then DHCP settings> address reservation
entered my mac address and the ip I wanted (I have tried a few ip's now) made sure it is enabled then I went to the network and sharing center on my pc and went to ipv4 settings. Entered the static ip (which now is 192.168.0.50) and the subnet mask and default gateway, then I opened command prompt and got my dns server then applied the settings. Note a trouble shooter pops up saying it couldn't find the problem. but in the past I've had that happen but everything still worked fine.

then after rebooting everything just to be sure I open command prompt and type ipconfig/all and it says ipv4 address 192.168.0.50(preferred)

Also just now I noticed that in command it says DHCP enabled No. Before I know it said yes though.

Edit: Also something that Happened in the past is that if I would set the static ip on my pc first instead of my router then I would lose internet and have to set it back to automatic but it doesn't seem to be doing that now. whether I have the settings set/applied in my router or not my ip stays 192.168.0.50(preferred) and I keep my internet access.
 

jeff-j

Honorable
Dec 13, 2013
508
0
11,060
I would try this. If possible to a factory reset on your router, this will remove your computer from the DHCP list and remove any old configs, also unplug your computer from the network. Once the router is reset go on your computer and set the IP address to static try using IP 192.168.0.25 be sure you have the correct default gateway and DNS servers. Once the router is reset and the IP on the computer is set to static, go ahead and plug the computer network cable back in and you should have internet access. If you don't you might have the wrong DNS. Next I would go into the router and change the DHCP address pool so it starts with 192.168.0.60, this will leave you with 192.168.0.2-192.168.0.59 that will not be assigned by DHCP. Once all of that is done try the port forwarding to the 192.168.0.25 address.
 

jeff-j

Honorable
Dec 13, 2013
508
0
11,060
With the way i described you should not need to reserve any IP address on the router or bind any IP address to a MAC. When you tell the router to use address 192.168.0.60 to start DHCP it will not assign anything from 192.168.0.2-192.168.0.59 to anything on the network, these are called reserved address. So if you set your computer to something like 192.168.0.25 it will never be assigned by DHCP.
 

chairsgotoschool

Honorable
Oct 6, 2012
277
0
10,810


that will make it static? My router will assign anything from 192.168.0.100-192.168.0.199 so anything below is good right?

right now I went on my pc to the network settings and set my ip to 192.168.0.25 and my internet is working. just before I did that, I did a factory restore on my router so the only settings that i've changed is the password and name. I have internet access like you said I would so i did it right i guess. but when I go into cmd and do ipconfig/all it still says (preferred) next to my ip but it is the correct ip 192.168.0.25 so now what do I do? am I good to try portforward? In my past experience if it says (preferred) then it will not work, and reading it seems that means something is up with the DHCP. though I will admit I don't know much about this stuff.