Eikon python API Conflict on port 9000

Hello Team,

I hope you're doing good. We have an internal application using the port 9000 and it looks like it's the default port of the Eikon python API. It's causing some conflicts for some users, and we were wondering if you had documentation on the way Eikon handle ports ? And if we can manage that with some configuration files for example ?

Best regards,

Best Answer

  • raksina.samasiri
    Answer ✓

    Hi @theo.px ,

    Thank you for participating in the forum by posting the question, as answered in this thread

    You cannot change the port Eikon listens on for connections through Eikon Data API. The port is determined at the startup of Eikon. If port 9000 is occupied, Eikon tries port 9001, 9002 and so on until is finds the one that's not occupied. Then this port number is written into the file "%APPDATA%\Thomson Reuters\Eikon API Proxy\\.portInUse". Eikon Python library picks the port number it tries to connect on from this file, but you can also call set_port_number method to attempt the connection on the port explicitly specified by you.
    You can see which port Eikon listens on by running "netstat -anb" as Administrator from the Command Prompt. In the output you're looking for the line:

    TCP 127.0.0.1:9000 0.0.0.0:0 LISTENING
    [Eikonbox.exe]


    Please let me know in case you have any further questions.