GOland 网络——使用net.Dial创建端口,出现connectex: A connection attempt failed because the connected party did not properly respond after a period of time
端口(address)若是小于1024,则需要修改端口。端口可能被占用
若端口,大于1024,则是windows设置的问题,在更新与安全——>开发者选项,打开开发者模式,设备门户后,在下面有wlan的使用端口与IP,将此IP写入net.Dial中的address即可使用
方法1 建立本地连接,IPV4,即可
conn, err := net