# Click on '''API''' section. Select '''Settings'''.
# Check '''Enable Active X and Socket Clients''' box.<br><div style="background-color: #E3FBE5;">'''Note''': By default both in IB TWS and IB data source in QuoteManager '''Port''' ('''Socket port''') number is '''7496'''.</div>
# It That is recommended required to add '''127.0.0.1''' to '''Trusted IP Addresses'''.
==To set up connection in Interactive Brokers Gateway:==
'''IB API''' should be selected when one logins to IB Gateway.