Connection refused
Where to look: Gateway paper session and paper port 4002
Start Gateway and log in to paper. Confirm the local API settings, choose the IB Gateway paper preset, then test again. Never switch to live port 4001 to make a connection succeed.
Open the matching guide →