The websocket was enabled on our ADS server and I am using ws://{IPaddress}:15000/websocket to try to connect to the websocket server but not able to connect to it. Receiving below error:
System.Net.Sockets.SocketException (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 159.43.120.70:15000
at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port)
at WebSocketSharp.WebSocket.setClientStream()
at WebSocketSharp.WebSocket.doHandshake()
at WebSocketSharp.WebSocket.connect()
I am using below sample code to try and test the connection but its failing. Can you please advise what could be the issue here?
websocket-api/MarketPriceExample.cs at master · Refinitiv/websocket-api · GitHub
I did test the connectivity from my machine to the ADS server that is listening on port 15000 but its failing. However, its working fine for one of my colleague. So the issue is not with ADS not listening.
Maybe I do not have port 15000 open on my test machine. Does it require to be open on my test machine? i.e. an outbound connection on port 15000 on my test machine correct? Any idea?