我需要SQL Server远程连接问题上的帮助。 我有安装SQL Server 2005的Windows Vista。我需要客户端连接到我的系统。 我的客户端在VB6中使用SQL Native Client。同一networking中的客户端可以连接到我的系统,并且应用程序运行成功。但是networking外的客户端无法连接到我的SQL Server。 我已经启用TCP / IP,命名pipe道允许我的计算机上的远程连接。我也允许我的sqlserver和浏览器通过Windows 7上的防火墙。这个问题似乎与IP地址。 我想我没有公共的唯一IP分配。 我使用“宽带广域网Miniport PPPOE”连接到互联网。在本地networking,我可以从客户端机器ping我的系统。客户机在不同的networking,我不能ping我的机器…为什么? 在我的系统上,IPCONFIG / ALL列出了以下内容:
Windows IP Configuration Host Name . . . . . . . . . . . . : TonseTonyServer-HP Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Mixed IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No DNS Suffix Search List. . . . . . : mshome.net PPP adapter Broadband Connection: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Broadband Connection Physical Address. . . . . . . . . : DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes IPv4 Address. . . . . . . . . . . : 192.168.150.234(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.255 Default Gateway . . . . . . . . . : 0.0.0.0 DNS Servers . . . . . . . . . . . : 192.168.150.1 192.168.100.1 NetBIOS over Tcpip. . . . . . . . : Disabled Wireless LAN adapter Wireless Network Connection: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Broadcom 4313 802.11b/g/n Physical Address. . . . . . . . . : CC-52-AF-96-8F-C1 DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : mshome.net Description . . . . . . . . . . . : Realtek PCIe FE Family Controller Physical Address. . . . . . . . . : 2C-27-D7-CC-2E-7D DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::d581:f5e:b4d0:c1aa%13(Preferred) IPv4 Address. . . . . . . . . . . : 192.168.0.12(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Lease Obtained. . . . . . . . . . : 27 November 2011 10:40:36 Lease Expires . . . . . . . . . . : 06 December 2011 10:17:24 Default Gateway . . . . . . . . . : 192.168.0.1 DHCP Server . . . . . . . . . . . : 192.168.0.1 DHCPv6 IAID . . . . . . . . . . . : 288106455 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-15-51-8B-1E-2C-27-D7-CC-2E-7D DNS Servers . . . . . . . . . . . : 192.168.0.1 NetBIOS over Tcpip. . . . . . . . : Enabled
我猜我的IP地址是192.168.0.12,如果我使用从另一个networking上的远程计算机ping这个地址,数据包丢失。如果我使用从本地networking内的计算机ping,ping工作。 我也尝试从本地networking之外的计算机上的OSQL -L / SQLCMD -L,它说没有servers.Withinnetworking它列出我的SQL服务器。 如何从本地networking之外的计算机连接? 我没有太多关于networking和所有,请帮助我..
除了TomTom和Top_Hat声明的内容:您正在尝试从公共互联网(WAN)连接到仅在您的私有内部网(LAN)上有效的IP地址。 您的局域网以外的任何人都无法访问您的服务器的内部IP地址。 为了从局域网外连接到你的局域网服务器,你需要将你的ISP分配给你的服务器的内部IP地址的NAT(端口转发)转换成SQL Server正在监听的端口/运行。