使用IP地址和端口号访问SQL Server ...帮助!

编程入门 行业动态 更新时间:2024-10-24 14:23:29
本文介绍了使用IP地址和端口号访问SQL Server ...帮助!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要访问位于防火墙后面的计算机上的SQL Server,并且您使用95.95.95.33:6930这样的IP地址(而不是真实的IP地址)访问此计算机...但是,我明白了通过访问端口6930上的95.95.95.33,防火墙将请求路由到该特定计算机上。

I need to access an SQL Server that is on a machine behind a firewall and you access this machine using an ip address like 95.95.95.33:6930 (not the real ip address) ... But, you get my point that by accessing 95.95.95.33 on port 6930, the firewall routes the requests to that particular machine ...

我的问题是...如何构造与之连接的字符串访问位于地址95.95.95.33:6930的计算机,然后进一步访问端口1433或其他端口(例如8484)上的SQL Server ???

My question is ... How do you construct a connection string to access the machine at address 95.95.95.33:6930 and then further access the SQL Server on port 1433 or maybe a different port like 8484 ???

谢谢

迈克

推荐答案

那么,您就可以像这样构建连接字符串

well, you build the connection string like this

"Server=95.95.95.33,6930;database=mydb;..."

防火墙/ nat必须将其路由到SQL Server的正确机器/端口上。

the firewall/nat will have to route that to the correct machine/port of the SQL server for you.

更多推荐

使用IP地址和端口号访问SQL Server ...帮助!

本文发布于:2023-08-07 13:46:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1319381.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:端口号   地址   IP   SQL   Server

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!