Could not connect to SQL server.

Ask a question or share a comment about WonderLister.
asrm10
Posts: 11
Joined: Wed Feb 08, 2017 10:03 am

Could not connect to SQL server.

Post by asrm10 »

Hello!

I have a question about the Wonder Lister. I set up Wonderlister on main PC on which I wanted the database to be on. Everything went smoothly in the installer and no errors popped up or anything like that.

The problem is me not being able to connect to the database with another computer with a fresh Wonderlister install. I do everything by the instructions, but I get the error "Could not connect to SQL server."

Is there something super obvious that I missed, which is completely feasible.

Thank you so much in advance!

EDIT: Sorry if this isn't technically the right place to ask this, but usually General Discussions have the highest traffic, that's why I posted here, sorry about that mods!
wladmin
Site Admin
Posts: 964
Joined: Fri Sep 20, 2013 11:27 pm

Re: Could not connect to SQL server.

Post by wladmin »

Hello,

99% chance is that there is a firewall running on your computer 1 which is preventing connections coming from computer2. To confirm this, first, please disable any firewalls (including Windows firewall). After disabling firewalls on computer1, try to run WL on computer2 and see if it connects.
Thanks,
The Wonder Lister Team
asrm10
Posts: 11
Joined: Wed Feb 08, 2017 10:03 am

Re: Could not connect to SQL server.

Post by asrm10 »

Hello,

Thank you for the answer and yes, disabling Firewall indeed helped me access. So the problem was in the firewall. What applications should I allow access through the Firewall?

Thank you in advance!
wladmin
Site Admin
Posts: 964
Joined: Fri Sep 20, 2013 11:27 pm

Re: Could not connect to SQL server.

Post by wladmin »

Ok, WL running on your computer1, go to Tools > Options

On the left hand side you will see an option to add firewall exception rules. Click that. Then, enable windows firewall on computer1. Then, run WL on computer2 and see if that succeeds. If still an issue, then, you need to add TCP 1433 and UDP 1434 ports to your firewall.
Thanks,
The Wonder Lister Team
asrm10
Posts: 11
Joined: Wed Feb 08, 2017 10:03 am

Re: Could not connect to SQL server.

Post by asrm10 »

I did that and still couldn't connect, so I suppose I need to add ports to my firewall. I will try to do that by myself using google and later come back here to share my success or failure, hopefully I will manage to do so.

Thank you again for your help!
wladmin
Site Admin
Posts: 964
Joined: Fri Sep 20, 2013 11:27 pm

Re: Could not connect to SQL server.

Post by wladmin »

Kindly post your observations here so that others can benefit from your observations.
Thanks,
The Wonder Lister Team
thirdvenue
Posts: 138
Joined: Thu Jul 31, 2014 10:29 am

Re: Could not connect to SQL server.

Post by thirdvenue »

YES, I was completely shut down with version .228 until I disabled my Firewall for private network. Then SQL started talking again.

Question is, what changes were made, what do we need to fix in the firewall settings to get around this. Clearly it is a change in the WL application as .227 did not have this issue and no other changes were made to any of our pc's recently.
asrm10
Posts: 11
Joined: Wed Feb 08, 2017 10:03 am

Re: Could not connect to SQL server.

Post by asrm10 »

Hello, just a quick update because I actually forgot to post. What I did to get through that issues was I created Homegroup. I think I did bunch of other things (For example opening ports/letting them through firewall multiple times), but I also did that, and afterwards I was able to connect to the main PC.
User avatar
red597
Posts: 154
Joined: Mon May 15, 2017 4:59 am

Re: Could not connect to SQL server.

Post by red597 »

*This problem has now been resolved.
~Money doesn't solve matters, but it takes problems to such a level that problems don't appear to be problems any more.
dssweboys10
Posts: 11
Joined: Mon Oct 24, 2016 9:07 pm

Re: Could not connect to SQL server.

Post by dssweboys10 »

I am having the same problem. I was able to successfully add the add the firewall exception rules while in WL on PC1 but PC2 wouldn't connect. Next, I manually added TCP 1433 & UDP 1434 but PC2 still wouldn't connect. Finally, I disabled my firewall and it worked right away. Is there another way to get this to work with PC2 without disabling my firewall? I'm really not comfortable with leaving it disabled.