注册 登录
编程论坛 VB.NET论坛

端口映射遇到的问题

w731my 发布于 2017-05-03 06:00, 1535 次点击
Imports NATUPNPLib
Public Class Form1

    Dim upnpnat As UPnPNATClass = New UPnPNATClass
    Dim mappingz As IStaticPortMappingCollection = upnpnat.StaticPortMappingCollection

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        mappingz.Add(5656, "TCP", 5656, "192.168.1.2", True, "port")

    End Sub
End Class
只有本站会员才能查看附件,请 登录

0 回复
1