将本地端口映射子域名

比如:localhost:8701 => niu.totocat.cn:8701

一、修改 host 文件

路径:

C:WindowsSystem32driversetc



路径如图:
在这里插入图片描述
修改:
在这里插入图片描述

二、执行命令

重置 dns

Ipconfig /flushdns
  • 1

在这里插入图片描述

 
原文地址:https://www.cnblogs.com/yixiaoyang-/p/12968923.html