How can i give my laptop static ip ?

Chocolade1972

Reputable
Sep 18, 2015
2
0
4,510
I have a laptop that is connected to a router network.
Now i want to give to the laptop a static ip the reason is that each time i shutdown the laptop and turn it on i see in the router another ip address for the laptop.

My router is Hotbox router the new one.
In my router i went to Advanced > Forwarding and created new IPv4.
Added as ip address: 192.168.1.10 and as start and end ports same 8098.

Then in the laptop i went to Network Connections and right click on Wireless Network Connection then properties then selected the TCP/IPv4 and properties.

Instead Obtain an ip address automatically i selected Use the following IP address and entered in ip address: 192.168.1.10

Subnet mask: 255.255.255.0

Default gateway 192.168.1.1 ( this is i saw in the command prompt when i did ipconfig /all this is also my router ip address when i want to log in to the router setting i type this 192.168.1.1 in the broswer ).

Then in the bottom i did in Use the following DNS server addresses i added in preferred DNS server 192.168.1.1

I can see on the right bottom side that my laptop is connected i see internet access but when i try to browse to a site it's thinking for some seconds then give the empty page error This page is not available.

When i'm doing Troubleshoot problems i see that he find error: The DNS server isn't responding.
Before that i saw error say DHCP is no enabled. But now i see this DNS server isn't responding.

When i click on details: Your computer is trying to use a DNS server that is incorrect or dosen't exist.

 
Solution
You do not need to forward any ports -in fact that is what is messing you up.

Log back onto your router and change that back,

Just make sure the address you assign the Laptop is in on the same network as the router -which it is if the IP addresses you are telling me are true, any address from 192.168.1.2 - 192.168.1.254 will work as a client address.

If you want to be absolutely sure another system doesn't grab that IP -you can assign it outside of the router's DHCP address pool.

Once again you don't need to forward anything in this setup.

Hope this helps
You do not need to forward any ports -in fact that is what is messing you up.

Log back onto your router and change that back,

Just make sure the address you assign the Laptop is in on the same network as the router -which it is if the IP addresses you are telling me are true, any address from 192.168.1.2 - 192.168.1.254 will work as a client address.

If you want to be absolutely sure another system doesn't grab that IP -you can assign it outside of the router's DHCP address pool.

Once again you don't need to forward anything in this setup.

Hope this helps
 
Solution
Everything you did is correct except the forwarding step. You need to be on the DHCP tab..you can turn it off all together and assign static address on any device you want to connect.

Again 192.168.1.2 - 192.168.1.254 range. A lot of routers will have the DHCP pool set to something like:

192.168.1.100 - 192.168.1.150 - meaning DHCP will give out 50 addresses in that range. Technically you do not want to assign a end-device a static address that lands in this defined range -but honestly unless you have a big network you should not have any IP conflicts - although to be safe, what I do continuing with above example and DHCP range is leave DHCP on for guest and stuff, then I have my main machines (Desktop, Media Server) set to the static addresses 192.168.1.50 and 192.169.1.2, respectively -as they are in the same subnet ( 192.168.1.0/24 ) they will communicate

Set DNS server to the router's IP (192.168.1.1) as well as default gateway on clients. for second DNS you can use google which is 8.8.8.8 or 8.8.4.4.
 
I think you have to have a secondary DNS server in there. Pop in 8.8.8.8 as secondary. reboot everything including router and laptop. wait 30 seconds in between power cycles. Try again,

Speed changing is normal,

Also, open up a command prompt and do these two commands:

>ping 127.0.0.1

>ping 192.168.1.1

First one should be sucessful always, if not then the problem is your TCP/IP stack on the NIC
If second one fails then there are other issues but i doubt that.
 



Ok now it seems to be working.
I'm using 192.168.1.5

And now i also see on the router settings in the DHCP under my laptop it says *** STATIC IP ADDRESS **

So now each time i will shut down my laptop and turn it on and connect to the router my ip will be 192.168.1.5 right ?
 


Yes!