Specify Source IP for ADO connection from Delphi to MySQL

陌路散爱 提交于 2019-12-23 15:53:28

问题


My Delphi application is connecting to a MySQL database using tAdoConnection. My customer has a machine that has two connections to the database server through the network. One is wired, the other wireless. So the machine running the application has two IP addresses on the same network.

My problem is that the wireless connection on this machine is not stable. So I want to force the database connection to be made through the wired connection. I know the source IP address that I want to use.

But how do I tell the ADO connection that it needs to connect through that source IP?


回答1:


You don't need look for this feature inside ADO, this kind of task can be made using an external application which bind your ADO app to a specific network interface (or network connection). I've done this in the past using ForceBindIP.



来源:https://stackoverflow.com/questions/13727523/specify-source-ip-for-ado-connection-from-delphi-to-mysql

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!