wins下配置networks文件映射主机名和端口号

xiaoxiao2021-02-28  104

小知识备忘录

1.修改以下目录的hosts文件

     C:\Windows\System32\drivers\etc\hosts

2.将想要映射的的ip地址以及主机名写入,保存后即可通过主机名访问

# Copyright (c) 1993-1999 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host 127.0.0.1 localhost XXX.XXX.XXX.XXX NN <-------添加映射地址

转载请注明原文地址: https://www.6miu.com/read-51454.html

最新回复(0)