I use the trial of PowerWebSocket API https://www.noemax.com/powerwebsockets/
I want connect a Client to the Server, but the server is on a remote machine.
Server
var server = new WebSocketServer();
server.AddEndpoint<LevelOneWS>("http://localhost:30000");
server.Open();
Client
var LevelOne = new WebSocketClient<TickService>http://www.xxx.yyy.zzz:30000);
LevelOne.Open();
The port 30000 is open on the server, client, router/modem (with redirection). But I can't connect to server, AddEndPoint cant connect, server dont accept the connection.
On the same computer, full localhost, its perfect.
我认为错误是,您的服务器在localhost上侦听,这意味着内部环回接口:127.0.0.1它应该在其外部接口上侦听。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.