I have a connection problem between a python-encoded server that works with websockets and a client that works with websockets too.
using System;
using System.Collections.Generic;
using System.Linq; using System.Text;
using System.Threading.Tasks;
using WebSocketSharp;
namespace test1 {
class Program {
static void Main(string[] args)
{
using (var ws = new WebSocket("ws://192.168.43.37:8080"))
{
ws.Connect();
Console.ReadKey(true);
}
}
When the program is generated it shows me that
25/04/2019 09:48:31|Fatal|WebSocket.Connect|System.Net.Sockets.SocketException (0x80004005): Aucune connexion n'a pu être établie car l'ordinateur cible l'a expressément refusée 192.168.43.37:8080 à System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port) à WebSocketSharp.WebSocket.setClientStream() à WebSocketSharp.WebSocket.doHandshake() à WebSocketSharp.WebSocket.connect()