SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Server doesn't accept connections from the web!


Server doesn't accept connections from the web!

Author
Message
MDTech.us_MAN
MDTech.us_MAN
SSC Rookie
SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)

Group: General Forum Members
Points: 37 Visits: 26
I am making a VB.Net app that accesses my SQL Server, but when I try to run the app from a remote computer, I get an error that it can't find the server.

It works fine if I access it from the local network using the local IP, but outside, using the public IP, it doesn't work!

I checked the Allow Remote Connection options, but that didn't work either

Also, I tried to put my server as DMZ host on my router, didn't work.

Additionally, I tried to disable windows firewall, no results.

Environment: Windows Server 2012, SQL Server 2012

Maxwell.
- Win
- Win
Mr or Mrs. 500
Mr or Mrs. 500 (594 reputation)Mr or Mrs. 500 (594 reputation)Mr or Mrs. 500 (594 reputation)Mr or Mrs. 500 (594 reputation)Mr or Mrs. 500 (594 reputation)Mr or Mrs. 500 (594 reputation)Mr or Mrs. 500 (594 reputation)Mr or Mrs. 500 (594 reputation)

Group: General Forum Members
Points: 594 Visits: 707
Just a try..

connect using : instancename,XXXX (1433, port number)

Cheers,
- Win
"Dont Judge a Book by its Cover"
Steve JP
Steve JP
SSC Veteran
SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)

Group: General Forum Members
Points: 243 Visits: 328
Are you trying to access SQL from the internet in which case are you using the correct IP address? Try http://www.whatismyip.com/ or similar from the box in question. Can you ping the server?

If it is over the WAN then ask your network admins to check if there are firewalls between sites that are blocking ypur TCP/IP address and port 1433. A telnet to the box from the remote site may help. Also get them to check to see if there any routers with access control lists which are blocking, and yes some network admins will see firewalls and routers+acl as completely different beasts!!

Worse case can you install a Network Monitor tool on the box to see if any traffic is reaching it. Best check with your Security admin to see if this is legit for your company.



As an aside: Why? Why do you want to connect to a sql server over a distance with a vb app. Unless you have a completely locked down sql server, and even then, it is generally not considered to be wise to allow a sql server to be accessed directly from the internet.











Are you using the correct IP Address.
Lowell
Lowell
SSC Guru
SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)

Group: General Forum Members
Points: 68552 Visits: 40900
i'l repeat what has already been said: it's a badk idea to expose your SQL se3rver directly to the internet.

that said, un doubtedly, you'll need to modify the router between the server and the internet; it typically blocks all inbound traffic unless you specifically set up some routing.
remember the rounter usually uses one ip address for all the machines inside the LAN, so a request for port 1433, that you think would go to your SLq server, gets ignored unless you take special steps.

you can also set up port forwarding as well, sot hat , for example, every request asking for port 1433 goes to a specific machine.

here's a screenshot from a home router as an example: it's sending certain ports to a specific machine.


Lowell
--help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!
MDTech.us_MAN
MDTech.us_MAN
SSC Rookie
SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)

Group: General Forum Members
Points: 37 Visits: 26
Everything is actually fine!
I was just my ISP doesn't allow you to access local computers using a remote IP.

Maxwell.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search