Hi, I have a python script which connects to TREP server through websocket api for getting real-time quotes. It works when I use the host name but not for IP address - the script need to run in an environment which is not aware of the machine name - any suggestions, thanks
@lzhuang1, In addition to trying the "provided API samples", can you try to check if the IP address is listening on the websocket port: 15000.
>>telnet ip.ip.ip.ip 15000
Where ip is the IP address of ADS providing websocket connection.
Is there any error from your python script? and Is this possible to share your test app?
I usually use an IP Address to test the WebSocket on my ADS and not found any issue.
Can you also try WebSocketsAPI_TryitNow_Doc example from https://developers.refinitiv.com/elektron/websocket-api/downloads connecting to the server using the same IP Address and port?
You may also try a python example from WebSocket API Sample Applications to test the server. Then you can compare the result with your python script.