such as the title
or can it be different, using different network cards is different? You can still change
such as the title
or can it be different, using different network cards is different? You can still change
generally speaking, there can be many network device interfaces on the same computer. For example, each network card (virtual or physical) can correspond to a network device interface, which can be seen through ifconfig on Linux, such as eth0/en0/tun0.. These are the packets of different network devices that are transmitted through different device interfaces. Two different devices may correspond to two different ip addresses.
In addition, something called a routing table is configured on the computer, which can be viewed and configured on the linux via the command route. This routing table determines which device is required to access an address or accept data from an address.then go back to the process, if the process does not have special settings, then it will decide which device to use according to the routing table, which determines what the ip address is. However, in the code of a process, you can also use many means to specify this thing, just as you can also specify a different proxy server to access the same address in a process, then you can also get different ip addresses.
usually, only one IP,ip represents your computer.
Network layer: if you need to communicate with remote devices, it is addressed through IP.
Transport layer: establish impassable TCP or UDP sessions, and different processes are distinguished by port numbers.
you can have more than one ip, on the same computer, but ip has nothing to do with the process. You can get all the ip addresses of the host in programming
.Previous: If you use php to write tree structure?
Next: Python generates CDK
I have a Dedicated server that manages remotely through IPMI. Recently, I asked for the IPv6 address through the administrator. Due to my lack of basic knowledge of IPv6, I encountered some problems in configuration, and the search was fruitless, so I c...