Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
While signing in to the on-premises data gateway, we get the below error
Network request returned unexpected error.
An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
Solved! Go to Solution.
Thank you for getting back Gilbert!
Yes, we did have internet access. However, some of the PowerBI URLs were being blocked by the firewall. That resolved the issue we were running into.
This link provides the list of URLs and porst
https://docs.microsoft.com/en-us/power-bi/service-gateway-onprem
Can you please elaorate in details how did you solve your firewall issue?
On-premises data gateway installed correct;y. However, when we sign in we get the below error
Network request returned unexpected error.
An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
Thank you for getting back Gilbert!
Yes, we did have internet access. However, some of the PowerBI URLs were being blocked by the firewall. That resolved the issue we were running into.
This link provides the list of URLs and porst
https://docs.microsoft.com/en-us/power-bi/service-gateway-onprem
Yes Gilbert. Thank you!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!