主机名与IP-地址 [英] Hostname vs. IP - address

查看:133
本文介绍了主机名与IP-地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在将openssl实现到我的应用程序中.当我必须设置BIO的主机名,IP-地址和端口时,出现了我的问题.我一直都知道ip和主机名是同一回事.有人可以解释一下两者之间的区别.

I am currently implementing openssl into my application. My problem arose when I had to set the hostname, IP - address, and port of the BIO. I have always known ip and hostname to be the same thing. Could someone please explain the difference.

推荐答案

主机名是计算机名称和域名(例如machinename.domain.com)的组合.主机名的目的是可读性-它比IP地址更容易记住.所有主机名都解析为IP地址,因此在许多情况下,它们像可互换一样被谈论.

A host name is a combination of the name of your machine and a domain name (e.g. machinename.domain.com). The purpose of a host name is readability - it's much easier to remember than an IP address. All hostnames resolve to IP addresses, so in many instances they are talked about like they are interchangeable.

这篇关于主机名与IP-地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆