2)cmd 控制台:ipconfig/all, 回车,第一行就是
二、linux 下查看主机名
查看主机名(hostname)
原文:https://www.cnblogs.com/fivefat/p/14884322.html