将应用程序从另一个网段连接到SQL Server
我希望我的 vb.net 应用程序从另一个网段访问 sql 数据库。
我有两个网段,我制作的应用程序位于192.168.7.xx网段,SQL Server 2005企业版位于192.168.1.xx网段,但该应用程序无法访问sql server,除非我将它们制作在同一段。
请帮忙。提前致谢!
I want my vb.net application to access the sql database from another network segment.
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.
Please help. Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的网络由正确配置的路由器连接,您应该能够从另一个网段访问您的服务器。如果这不起作用,请检查工作站和服务器的网关是否设置为路由器的网络地址,可能是 192.168.1.1 和 192.168.7.1。
如果您的路由器是 Linux 机器,请确保数据包允许通过两个接口。
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.
If your router is a linux machine, make sure packets are allowed to pass through both interfaces.