Follow the below given steps to configure ODBC port no. in tally
In Tally.erp 9> F12> Advanced Configuration
Tally.erp9 is acting as BOTH
Enable ODBC server Yes
PORT 9000 and Save(CTRL+A) the settings