简体   繁体   English

从另一个网段连接应用程序到SQL服务器

[英]Connecting an application program to SQL Server from another network segment

I want my vb.net application to access the sql database from another network segment.我希望我的 vb.net 应用程序能够从另一个网段访问 sql 数据库。

I have two network segment, the application program that I made is in 192.168.7.xx segment and the SQL Server 2005 Enterprise Edition is in 192.168.1.xx segment but that application program cannot access the sql server unless I make them in the same segment.我有两个网段,我做的应用程序在192.168.7.xx网段,SQL Server 2005企业版在192.168.1.xx网段,但是那个应用程序不能访问sql服务器,除非我在同一段。

Please help.请帮忙。 Thanks in advance!提前致谢!

http://new-passive-income.blogspot.com http://new-passive-income.blogspot.com

http://mbleisure.blogspot.com http://mbleisure.blogspot.com

If your networks are connected by a router correctly configured, you should be able to access your server from another network segment.如果您的网络由正确配置的路由器连接,您应该能够从另一个网段访问您的服务器。 If that doesn't work, check if the gateway of your workstation and of the server is set to the network addresses of the router, maybe 192.168.1.1 and 192.168.7.1.如果这不起作用,请检查您的工作站和服务器的网关是否设置为路由器的网络地址,可能是 192.168.1.1 和 192.168.7.1。

If your router is a linux machine, make sure packets are allowed to pass through both interfaces.如果您的路由器是 linux 机器,请确保允许数据包通过两个接口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM