以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  在其上下文中,该请求的地址无效。  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=123384)

--  作者:xluoping
--  发布时间:2018/8/13 17:19:00
--  在其上下文中,该请求的地址无效。
2018-08-13 17:13:54.4785
在其上下文中,该请求的地址无效。
   在 System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   在 System.Net.Sockets.Socket.Bind(EndPoint localEP)
   在 System.Net.Sockets.UdpClient..ctor(IPEndPoint localEP)
   在 Foxtable.IMServer.Start()

代码如下,用的阿里云,UDP有设置正确(之前用没有问题):

Dim bn1 As WinForm.Button = e.Form.Controls("Button1")
Dim bn2 As WinForm.Button = e.Form.Controls("Button2")
bn1.Enabled = False
bn2.Enabled = True
If QQServer.Ready = False Then
    QQServer.ServerIp = "120.25.244.239" \'指定IP地址  这是阿里云服务器IP
    \'QQServer.ServerIP = "0.0.0.0" \'指定IP地址
    \'QQServer.ServerIp = "127.0.0.1" \'指定IP地址
    QQServer.ServerPort = 52177 \'指定端口
    QQServer.HeartbeatInterval = 30 \'指定心跳时间
    QQServer.HeartbeatTimeout = 100 \'指定心跳超时时间
    QQServer.PortRange = "52000/53000" \'指定随机端口范围
    QQServer.Start() \'启动QQServer
End If
HttpServer.Prefixes.Add("http://*:32177/")
\'HttpServer.Prefixes.Add("http://*:8001/")
HttpServer.WebPath = "d:\\web"
HttpServer.Start()

--  作者:有点甜
--  发布时间:2018/8/13 19:10:00
--  

QQServer.ServerIp = "120.25.244.239" \'指定IP地址  这是阿里云服务器IP

 

改成

 

QQServer.ServerIP = "0.0.0.0" \'指定IP地址