Home > other >  About two of the same IP address
About two of the same IP address

Time:11-26

Is learning computer network recently, there is a little don't understand:
IP address is limited, but there is a great host, so through a network that each host IP is the only under their networks, (I understand, so if there is wrong please correct me)
I wrote a socket program, use your own computer to access a cloud server in Shanghai, successful visit to enter the IP address of the other,
But if in A net machines to access B network of one host, how he is going to make sure that there is no connection to the C net machine of the same IP?

CodePudding user response:

Your so-called A net, B mesh, C I would understand into local Internet cafes,
Each local area network (LAN) exports, generally do NAT, NAT is the Internet, within a local area network (LAN), the LAN will be NAT hidden, reflect on the Internet, is only a NAT outside so one (or several) public IP address, and because of that, a local area network (LAN) host by default host cannot access to other local area network (LAN),

CodePudding user response:

reference 1/X - I - n reply:
your so-called A net, net, B C network I understand into local Internet cafe,
Each the export of local area network (LAN), usually do NAT, NAT is the Internet, is a local area network (LAN), within the LAN will be NAT hidden, reflect on the Internet, is only a NAT outside so one (or several) public IP address, and because of that, a local area network (LAN) host by default host cannot access to other local area network (LAN),
I build this local access to remote machines is how to achieve?

CodePudding user response:

refer to the second floor qq_40446334 response:
Quote: refer to 1st floor X - I - n reply:
your so-called A net, net, B C network I understand into local Internet cafe,
Each the export of local area network (LAN), usually do NAT, NAT is the Internet, is a local area network (LAN), within the LAN will be NAT hidden, reflect on the Internet, is only a NAT outside so one (or several) public IP address, and because of that, a local area network (LAN) host by default host cannot access to other local area network (LAN),
I build this local access to remote machines is how to achieve?
access when I wrote the public IP, then he is the right of access to the host. I want to visit

CodePudding user response:

I went to some relevant explanation, seems to be like this, the server and our machine is different, its monopoly on a public IP, rather than our own machines in local area net share an IP, if have wrong please correct me

CodePudding user response:

Internet IP address is unique and will not repeat, A net, net, B C net these classifications, can actually, in our usual use, there is not much meaning, I think is useful to the operators,

CodePudding user response:

The IP routing port mapping on a specific host

CodePudding user response:

refer to the second floor qq_40446334 response:
Quote: refer to 1st floor X - I - n reply:
your so-called A net, net, B C network I understand into local Internet cafe,
Each the export of local area network (LAN), usually do NAT, NAT is the Internet, is a local area network (LAN), within the LAN will be NAT hidden, reflect on the Internet, is only a NAT outside so one (or several) public IP address, and because of that, a local area network (LAN) host by default host cannot access to other local area network (LAN),
I build this local access to remote machines is how to achieve?



Such as you to remote access C network host, the host address is mapped on the C net export IP port, such as 221.22.243.89:88118. The remote, you first IP address can access to the C net, rather than B network, the custom of port number 88118 is corresponding to the host address of you want to visit

CodePudding user response:

refer to the eighth floor heat beard response:
Quote: refer to the second floor qq_40446334 response:

Quote: refer to 1st floor X - I - n reply:
your so-called A net, net, B C network I understand into local Internet cafe,
Each the export of local area network (LAN), usually do NAT, NAT is the Internet, is a local area network (LAN), within the LAN will be NAT hidden, reflect on the Internet, is only a NAT outside so one (or several) public IP address, and because of that, a local area network (LAN) host by default host cannot access to other local area network (LAN),
I build this local access to remote machines is how to achieve?



Such as you to remote access C network host, the host address is mapped to a port on the C net exports of IP, such as 221.22.243.89:88118. The remote, you first IP address can access to the C net, rather than B network, the custom port number 88118 is corresponding to the host address of you want to visit
well, understand now, I have been think Ipv4 only millions of IP, so most of the machines in the local area network (LAN) down to ensure the other IP conflict, later discovered that there are billions of IP, such words as an IP server monopoly and consoles in groups sharing an IP it is understandable

CodePudding user response:

Popularization of IPv6, can need not around server but the operators must be the first don't drop
  • Related