I’ve tried to connect to an SQL Server via WAN using as servername my WAN IP (in my case, a domain) but I can’t do that when I can via LAN.
How can I fix that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Can you be more specific?
How are you connecting to the server? Which language are you using? Can you paste the IP of both machines?
I’m not sure if you are using the right IP, but one thing to remember in networking is that “your own network does not know itself”; what I mean is that, supposing I have 64.148.129.89 as public IP, if I try to connect to that IP from any computer on my network, I will get the “Not Found Error” or a “Timeout Error.”
Why? Well, simply because DNS doesn’t make a U turn: After it bubles up outside of your network, it won’t point back to the same spot.
What’s the solution you say?
Use your local intranet IP to connect between machines. An example of intranet IP is 192.168.2.1 which usually points to your default gateway.