Getting a SQL Server Error: 258 when connecting via a VPN - sql

We have an application that runs fine withinenter image description here our network. When trying to access it via a VPN we get the attached - any ideas?
Thanks in advance.

Related

Can't connect to a SQL Server database using a specific network

I'm working from a new place and I'm unable to connect to a remote database using the wi-fi, but it works if I route my mobile 4g as a hotspot.
I've contacted the internet provider and they say there's nothing blocking the access. And it seems true because it allows me to connect to the VPN and I can access the remote desktop where the database is hosted and in there I'm able to connect to the database using SSMS without any errors, but when I try to connect directly from my PC I get the following error.
Any idea what could be causing this or how can I investigate where the problem is?
I'm using SSMS v18.9.1, windows authentication and connecting using the server name like "srv123.xxxx.com\instprd". This configuration works when I use the 4g hotspot instead of the wi-fi.
Tried what I could and then I talked to the ISP support and it was indeed that some ports were blocked.
Some update on the router (tp link AC1200) firmware caused it so they had to downgrade it and that solved the problem.

mysql command line client says can't connect to Azure Database for Mysql

I was happily using mysql command line in my mac to connect Azure Database for MySql. But all of sudden it started throwing an error saying:
ERROR 2003 (HY000): Can't connect to MySQL server on 'XXXXXXXX.mysql.database.azure.com' (61)
I can see the the database instances is running alright, as I'm able to use the database from an application that is running in Azure.
Has anyone else experienced this?
This problem occurred because the particular network i was connected to not allowing any such connections. Later when i tried from my usual network ( home / office )it got connected. I haven't made any changes in my Azure Db for MySql nor in my local machine, this proves that problem was with that particular network.
It sounds like firewall rules were not setup for that specific network. Can you confirm by looking at this doc?
https://learn.microsoft.com/en-us/azure/mysql/concepts-firewall-rules
Basically, you can click "Add my IP" which would add your current network's Client IP. However, if the network you are on SNAT's out with multiple IP's, you would need to add the entire range from your networking team.
Thanks.
James

Error while connecting to Mobile First server on Bluemix

Getting error when I try to connect to Mobile First server instance in Bluemix.
Please find the attached screen shot.

Time Synchronization using NetRemoteTOD in vb.net

I use NetRemoteTOD() for time synchronization with remote PC. As I understand it requires at least basic permissions from client to access that remote PC. If I just execute NetRemoteTOD(), it gives me Error 5 (Access denied). But when I connect to other PC/Server with no log in credentials it works perfectly.
and here my reference of Time Synchronization using netRemoteTOD
BTW, it's a WINFORM Application.
Question is - How to login to remote PC programmatically?
Any help will be greatly appreciated.

Connect ot SQL Server Express 2012 over the internet

I've been trying to configure my sql server express 2012 to recieve connections over the internet without any luck for hours (I'm using Team Foundation Service for nightly builds but it fails when it tries to run unit tests that interact with the sql server).
All I keep getting is this message :
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
I have tried the following in order to solve this:
Install and run SQL Server Browser
Enable TCP/IP for the sql server instance (using the default SQLEXPRESS)
Enable Port forwarding in my router
Added SQL Server and SQL Server browser apps to the firewall allowed apps list.
Banged my head against the wall.
My sql server is mixed mode, and the username and password are correct (it works when using the local ip address)
I've read every post here regarding this problem but nothing so far..
I'm pretty desperate so any advice will be greatly appreciated!
thanks
Solved it.
Only had to enter my public IP adress without the isntance name.
For example xxx.xxx.xxx.xxx instead of xxx.xxx.xxx.xxx\SQLEXPRESS
I can't believe it's such a stupid mistake ...