打开 通过upnp打开端口转发的实用程序。 用golang写。 什么时候有用? 如果您想将LAN上的IP地址公开给Internet,则可以通过UPnP与路由器一起设置端口转发,该端口将从路由器(公共IP)转发到本地网络上的计算机(192.168.xx地址) )。 然后,您可以在给定端口上单击外部IP地址,它将被转发到本地网络上的给定计算机。 用法 $ ./openup -h Usage: -close Close (as opposed to open) the given port. -ip Display external IP address and exit. -port int Port to open/close (default -1) -udp Use UDP (instead of TC