Configure the Connecting Host IP Address
- Launch Trader Workstation or IB Gateway
- Open the Windows File Explorer
- Navigate to
C:\TWS API\samples\DdeSocketBridge - Right click the “runDdeSocketBridge.bat” file.
- Click Edit from the list. This will open a new Notepad window.
- NOTE: Windows 11 users may need to choose “Show more options” first.
- On the third line after “DdeSocketBridge.jar” add -h followed by whichever IP Address you need to connect to.
NOTE: Be sure this IP address matches the location of your Trader Workstation. Also be sure that the Socket Bridge’s IP matches where Excel is being hosted.

