Connecting to ADS Websocket failing

Today, 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
Best Answer
-
It does not seem like your application can connect to ADS on the websocket port. It could be due to number of reasons:
1. ADS isn't really listening on websocket port - ask your market data admin to confirm and test if port 15000 is listening on the ADS machine (netstat -a)
2. Your application cannot reach ADS, i.e. it is unable to resolve the hostname
or
3. There is a firewall that is blocking the port.
Once you can confirm that you can connect to port 15000 on ADS from your machine, only then you can try out the sample.
0
Answers
-
Hello @jpatel2,
I have just verified by running the same example against my testbed.
On the command line I pass three parameters:
-h myHost -p 15000 -u myUser
I would suggest contacting your market data group or admin, and confirming these parameters, as well as the service name to use.
I would also suggest testing connectivity, via telnet from your testing machine to ADS on port 15000, either yourself, or your market data group will be able to help with this test, to be sure there is connectivity open to ADS host on 15000.
There is a small modification to code that you may need:
/* Request an item. */
sendMessage( "{" + "\"ID\": 2,"
+ "\"Key\": {\"Name\":\"TRI.N\", \"Service\" : \"ELEKTRON_DD\"}" + "}" );Where ELEKTRON_DD should be the service name on your local infra, that your local market data group/admin are good to confirm. However, this is not the main issue, the issue you see happens earlier in the workflow and is not related to service spec not included in the request.
Hope this helps - let us know how this works on your side.
0 -
Hello @zoya faberov/ @Gurpreet ,
Thank you for your response. 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?
Thanks. Let me know.
0 -
Hello @jpatel2 ,
If you have the admin privileges on your machine, I would review and potentially adjust any local firewall settings.
However, if you do not, or if this does not help, as there may be other causes, you may not have the route from your local machine to the infra, I would suggest to contact your local network admin/group for help with network connectivity.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 690 Datastream
- 1.5K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 560 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 281 Open PermID
- 46 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 724 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛