"Failed to connect to server (code: 1006)" when connecting to ib gateway (security card required)

hi
i am having problems connecting to ib with a security card
i am following the instructions in the 'installation tutorial for windows'
first i start up ib gateway with the comand $quantrocket launchpad start
then i try to connect to: http://localhost:1969/ibg1/vnc
and i get the error:
Failed to connect to server (code: 1006)
i have ib gateway installed and i can connect successfully.
my environment variables ibg1_username and ibg1_password are set.
any help would be appreciated
thanks
darryl

1 Like

It takes a few seconds for the ibg container to start accepting VNC connections after you run quantrocket launchpad start, did you give it a moment?

If you still can't access the GUI, try restarting the ib gateway service and monitoring the logs while it starts up. In a second terminal:

quantrocket flightlog stream -d

Then in the first terminal:

quantrocket launchpad stop --wait
quantrocket launchpad start