开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: API server failed to start


 

Assuming your system does not show weird behavior I can only think of two major reasons why TWS/IBGW cannot create the socket they need to accept client connections through:
  • The TCP port number for that socket is already in use by another program, just like the error message says. This can be another TWS/IBGW instance or any other program on the same system. You can use the "lsof" command under Linux or TCPView on Windows (from Microsoft's Sysinternals) to determine whether a socket with that port number does exist and which process/program owns it.
  • Your system runs some kind of (reverse) firewall or network security software that prevents programs from creating TCP sockets to listen on. In that case, there is usually a way to specify that TWS/IBGW should be permitted to create sockets.
闯ü谤驳别苍
?
On Mon, Sep 9, 2024 at 08:35 AM, <abc20561225@...> wrote:

Can anyone help me please.. My paper trading account's API server fails to start. Every time i log into TWS, it says the API server failed to start since the specified port 7497 is already in use by another application. I don't have another TWS application running but it keeps on saying socket port in use. Tried reinstalling the TWS, changed the versions, even tried changing the socket port number but nothing is working.

Join [email protected] to automatically receive all group messages.