Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Apr 13, 2018 1:18:33 GMT
I'd like to ask you guys for help So whenever I change my ipv4 to say something like 192.168.1.4, and then reload a website, it wouldn't let me connect on that said website - It disabled my internet. What do you guys think the problem is?
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Apr 13, 2018 4:17:41 GMT
Thats a local IP address. You'd need to set it to 192.168.1.1 or whatever your routers address is? If not then set it to your public IP? Also while you're there you might want to have a look at changing your DNS to 1.1.1.1 ( 1.1.1.1 for more info )
|
|
|
Post by Mark the Dragon on Apr 13, 2018 7:52:10 GMT
That's your local address, what you want to look at is your public address. But when you're sure you are connected to the internet but your browser says otherwise it means your DNS resolver is asleep. Turn your router off and keep it off for 10 minutes and turn it back on and everything should be fine.
|
|
thecjgcjg
Veteran Member
Posts: 1,459
| Likes: 1,130
|
Post by thecjgcjg on Apr 13, 2018 13:03:30 GMT
There are a few private IP ranges 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
You usually find 192.168.0.0/16 - Used primarily in home and small business environments 172.16.0.0/12 - Used primarily in data center networks, or VPN related private networking 10.0.0.0/8 - Used primarily in business networks.
In most environments, espeically those where you can just connect a device you use a service called DHCP to issue IP addresses to clients. This works by keeping a table of Client ID (mac address) and their corrosponding IP address.
Static IP addressing is neccessary, when you want one client to not request an IP from the DHCP server. (an alternative is reserving addressed in the DHCP server to ensure that one client always gets the same IP, and this is preferable)
You can only have one of each IP address, in the same subnet, so say for example you have 4 devices - Router (192.168.1.1) - Phone (192.168.1.100) - Laptop A (192.168.1.101) - Laptop B (192.168.1.102)
These devices, could generally all connect to eachother, and also the internet (using NAT) via 192.168.1.1
Now, in a network you can have a mix of these - Router (192.168.1.1) - Phone (192.168.1.100) - Laptop A (192.168.0.100) - Laptop B (192.168.0.101)
So in this setup, you would find that the phone could still connect to the internet via the router at 192.168.1.1 But, as these are now on different subnets (and there's nothing to connect the two 192.168.0 and 192.168.1) the two laptops will be able to communicate with eachother, but not to the internet.
- Router (192.168.1.1) - Phone (192.168.1.100) - Laptop A (192.168.1.101) (DHCP assigned) - Laptop B (192.168.1.101) (Static)
Now, in this one, notice how the two laptops have the same IP address - this will mean that while yes, a connection COULD be possible, it will not be reliable - which one of the two will actually work is determined by the way ARP works in your particular fashion - and it may not work in a reliable fashion.
So, you have a couple of options to avoid this issue. Change the DHCP range - Home routers will usually issue only a certain number of IP addresses, in between a specified range - this is configurable on the router - You should avoid using static IP's in this range. - Set up your network to have 192.168.1.0 -> 192.168.1.10 as networking stuff (switches, routers etc) 192.168.1.11 -> 192.168.1.100 as staticly assigned, and 192.168.1.101 -> 192.168.1.254 as your DHCP range. Or anything similar (also remember if your IP range is different, use that)
Use DHCP reservation Use DHCP to always issue the same IP address to the same client, this is much better of an option - the only static device on the network should be routers, and in some cases
TL;DR - use the same IP range, dont accidently use a different subnet, dont duplicate IP addresses.
|
|