Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1583  / 2 Years ago, sat, december 25, 2021, 4:52:54

Command for determining my public IP?


According to "Michael K" who answered the question my computer won't know the public Ipv4 address but it somehow knows the public ipv6 address. Why is that so? executing the command ìp a shows my public ipv6 address.


More From » networking

 Answers
5

I will try to describe this the best I can.


It really all depends on what supplies IPs to your host. For most home users they use a router that has a built-in DHCP server thus allowing more than one system online through using 1 IP address. You can setup a computer as a router too. If you have only 1 computer you could bypass the router all together and hook up your system directly to your broadband modem. IPv4 vs IPv6 are two completely different ways of doing IP addresses.


A decent read https://www.thousandeyes.com/learning/techtorials/ipv4-vs-ipv6


IPv4 is a 32-bit way of addressing and is limited as to how many unique IP addresses there are total (just over 4 billion). Where IPv6 is 128-bit allowing 340000....0000 (37 zeros after the 34, it's a big number) where you can have your own unique IPv6 public IP for every single device in your house connected to your router, even your router would have its own public IP.


So, to keep allowing for IPv4 addressing, they have created it so that a public IP on IPv4 to a single location uses 1 IP, then NAT takes over with the DHCP allowing you to create more IPs behind the public IPv4 allowing you to have more and more systems using the same public IP.


[#1781] Sunday, December 26, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
uccase

Total Points: 473
Total Questions: 100
Total Answers: 110

Location: Anguilla
Member since Sun, Jan 29, 2023
1 Year ago
uccase questions
;