Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
dk_power
Frequent Visitor

PowerBI OnPRem Gateway is NOT connecting to Secured Network but working on Public IP

Dear All,

 

I have my PowerBI Online version, the OnPremise Gateway is setup in the SQL Server Machine.

However when I tried to add the datasource under the gateway in "Manage Gateway" Option, its throwing error.

One thing we have noted is, if we keep the SQL server machine OPEN to PUBLIC then "its working good", but we cannot afford to keep it open for security reasons. Also we have tried whitelising some of the IPs from "GatewayPortsTestResults2020-05-13T22_11_56" file, even then there is NO luck. image.png

 

 

 

 

2 ACCEPTED SOLUTIONS

Hi @dk_power ,

This error usually means that the client can't find the SQL Server instance. This normally happens when at least one of the following problems exist:

  • The name of the computer hosting the SQL Server
  • Instance does not resolve the the correct IP
  • The TCP port number is not specified correctly

 

Please follow the instructions in the article below to troubleshoot this connection error: 

Troubleshoot connecting to the SQL Server Database Engine 

 

You can also refer this simliart issue: Re: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server 

 

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

dk_power
Frequent Visitor

Finally we have Whitelisted the Public IP of the AWS EC2 instance - the same machine where both SQL Server and Gateway is installed. Now Gateway is working as expected. Its a kind of Circular Reference.

View solution in original post

5 REPLIES 5
dk_power
Frequent Visitor

Finally we have Whitelisted the Public IP of the AWS EC2 instance - the same machine where both SQL Server and Gateway is installed. Now Gateway is working as expected. Its a kind of Circular Reference.

v-yingjl
Community Support
Community Support

Hi @dk_power ,

When using on-premiss gateway to connect to SQL Server, please try to set the privacy settings for this datasource as Organizational or Private to connect again.

gateway privacy.png

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi Yingjie, Thanks for your response, I have tried both Org and Private. No luck as of now.

 

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)

Hi @dk_power ,

This error usually means that the client can't find the SQL Server instance. This normally happens when at least one of the following problems exist:

  • The name of the computer hosting the SQL Server
  • Instance does not resolve the the correct IP
  • The TCP port number is not specified correctly

 

Please follow the instructions in the article below to troubleshoot this connection error: 

Troubleshoot connecting to the SQL Server Database Engine 

 

You can also refer this simliart issue: Re: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server 

 

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Hi Yingjie, Our Situation is not like "Its completely NOT working". Gateway is working if we keep the SQL Server machine open to public, but if we limit to only whitelisted ips its not woring. Based on the directions from MS support team we have whitelisted all 132 IPs from the uswest Region Azure Datacenter, still there is no luck.  Please let me know if there is any resolution for this specific case.

 

Thank you for your consistent postings.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.