Domain name and ip, port relationship

Background: The need ip + port when a new project, part of the RPC service call.

In the process go work order system, forced to fill in the domain name. Even before the operation, I feel domain name is not important. I would need to fill in ip + port, you give the whole domain name, then I port where to write? (Always thought domain = ip + port) OP sent me a specification document, I looked at, which said only the domain name resolved to the corresponding service. Repeatedly read, the meaning is clear: the domain name can only correspond to ip.

This is very different from my previous understanding, always thought before the domain name is ip + port.

First thought of DNS, I looked host configuration of the machine, the domain name really only corresponds to the ip, no port.

So search a lot, https: //www.jianshu.com/p/806d0514ec7d utm_campaign, ask a lot:? Https: //www.v2ex.com/t/573094#reply3. Generally understand the

 

Only the corresponding domain name IP.

If the domain name without the port, then, http request is the default port 80, https the default is 443.

 

Guess you like

Origin www.cnblogs.com/shuimutong/p/11008695.html