試過改registry是有效的, 改成0xFF重開後1. 本機 ipconfig 不會出現網卡的IPv6地址C:\Users\user>ipconfigWindows IP ConfigurationEthernet adapter Ethernet0:Connection-specific DNS Suffix . : localdomainIPv4 Address. . . . . . . . . . . : 192.168.116.129Subnet Mask . . . . . . . . . . . : 255.255.255.0Default Gateway . . . . . . . . . : 192.168.116.22. 本機 localhost 會解析成127.0.0.1C:\Users\user>ping localhostPinging DESKTOP-OP5ECUK [127.0.0.1] with 32 bytes of data:Reply from 127.0.0.1: bytes=32 time<1ms TTL=128Reply from 127.0.0.1: bytes=32 time<1ms TTL=128Reply from 127.0.0.1: bytes=32 time<1ms TTL=1283. 用其他PC ping 本機的hostname, 其他PC解析到的是本機的IPv4地址C:\Users\user2>ping DESKTOP-OP5ECUKPing DESKTOP-OP5ECUK.local [192.168.116.129] (使用 32 位元組的資料):回覆自 192.168.116.129: 位元組=32 時間<1ms TTL=128回覆自 192.168.116.129: 位元組=32 時間<1ms TTL=128回覆自 192.168.116.129: 位元組=32 時間=1ms TTL=128以上皆在Win11下測試