Remember that 3rd-party ODBC access is not supported by Cisco except for a) designing custom reports; or, b) wallboard applications which are restricted to only two tables with a read operation no more than once every 10 seconds.
With that disclaimer out of the way, you must whitelist the IPs allowed to make an ODBC connection under Tools > Real-Time Snapshot Config > Server Name.
http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cust_contact/contact_center/crs/express_10_5/config/guides/UCCX_BK_U9F91527_00_unified-ccx-administration-guide-release-10-5/UCCX_BK_U9F91527_00_unified-ccx-administration-guide-release_chapter_010010.html