Share via

On-premises data gateway

Hadas Eliyahu 5 Reputation points
2026-05-18T13:15:42.2733333+00:00

Hello,

I have a problem connecting to the On-premises data gateway.

I try to login to the app in the computer, I get to connect to the account via browser and then I have this error:

"the gateway is configured correctly but is unreachable due to local network connectivity problems"

the gateway service is on.

I checked the logs and it says there:

"Microsoft.ServiceBus.RelayNotFoundException Relay must be created at this address before using the binding with IsDynamic set to false" ,"ServiceEndpoint Connection status: Offline sb://wabi-west-europe-relay26.servicebus.windows.net"

Can anyone help me to find a solution?

Thank you!

Windows for business | Windows Server | Networking | Network connectivity and file sharing
0 comments No comments

3 answers

Sort by: Most helpful
  1. Brian Huynh 3,295 Reputation points Microsoft External Staff Moderator
    2026-05-19T07:03:22.19+00:00

    Hello Hadas Eliyahu, thank you for posting in the Microsoft Q&A community.

    This behavior occurs when the gateway software can successfully authenticate with Microsoft Entra ID (via port 443) but fails to establish the persistent outbound connection to Azure Service Bus. This is almost caused by a local firewall, proxy server, or network security group blocking the required non-standard outbound TCP ports or intercepting the traffic.

    To resolve this, please try forcing the Gateway to use HTTPS Mode:

    • Open the data gateway app on the host machine.
    • Go to the Network tab.
    • Toggle the switch for HTTPS mode to On.
    • Click Apply. The gateway service will restart automatically.

    (Note: HTTPS mode is highly effective for bypassing strict firewall port rules, though it may introduce a very slight performance overhead depending on your data volume).

    If the issue persists after turning on HTTPS mode or unblocking the ports, I will need a bit more data to assist you further. Could you please export the gateway logs by going to the Diagnostics tab and selecting Export logs. Review the GatewayErrors.log file for any specific System.ServiceModel, Proxy, or SocketException error codes and share the exact error text here.

    I will follow up on this thread to ensure your issue is completely resolved. Please keep me updated on your progress, and if this helps, please consider clicking "Accept answer".

    Official Microsoft References:

    Was this answer helpful?


  2. Hadas Eliyahu 5 Reputation points
    2026-05-18T13:33:43.2466667+00:00

    I tried this - Diagnostics and run Network ports test.

    and it all got success.

    the Network → HTTPS mode is on

    I checked this on the power shell and it all got success

    Test-NetConnection wabi-west-europe-relay26.servicebus.windows.net -Port 5671

    Test-NetConnection wabi-west-europe-relay26.servicebus.windows.net -Port 5672

    Test-NetConnection wabi-west-europe-relay26.servicebus.windows.net -Port 443

    -- I still have the problem - any other things to check?

    Was this answer helpful?

    0 comments No comments

  3. AI answer

    2026-05-18T13:15:59.24+00:00

    The error and log entry indicate a connectivity problem between the on-premises data gateway and Azure Relay, not a sign-in problem with the account.

    Use these steps on the gateway machine:

    1. Verify gateway network connectivity
      • Open the On-premises data gateway app.
      • Go to Diagnostics and run Network ports test.
      • If the result is Completed (Failed, see last test results), open the last test results and identify which servers/ports are reported as Closed. These must be allowed on your firewall/proxy.
    2. Ensure required FQDNs and ports are open Make sure outbound access is allowed from the gateway machine to at least the following (for public cloud):
      • *.servicebus.windows.net on ports 5671–5672 and 443, 9350–9354 (Azure Relay)
      • *.powerbi.com on 443
      • *.analysis.windows.net on **443`
      • *.login.windows.net, login.live.com, aadcdn.msauth.net, login.microsoftonline.com, *.microsoftonline-p.com on 443 (sign-in)
      • Any other domains listed in the required ports table that apply to your scenario. If any of these are blocked by a corporate firewall or proxy, the gateway will show as configured but unreachable, and the Relay connection will stay offline.
    3. Check firewall/proxy specifics
      • If using a proxy, confirm the gateway is configured with the correct proxy settings as described in Configure proxy settings for the on-premises data gateway.
      • If the proxy only allows ports 80 and 443, either:
        • Open the additional required ports for *.servicebus.windows.net, or
        • In the gateway app, enable Network → HTTPS mode to force communication with Azure Relay over HTTPS (port 443) instead of direct TCP.
      • If using a firewall that filters by IP, allow the Azure data center IP ranges for your region as described in the networking documentation.
    4. Validate no unsupported Bring Your Own Relay configuration
      • If Bring Your Own Azure Relay is enabled for this gateway, ensure Private Link is not enabled on that Relay namespace. Private Link with BYO Relay is not supported and can cause connectivity failures.
      • If BYO Relay is not required, disable it so the gateway uses the default managed Relay.
    5. Confirm gateway service account and restart
      • In the gateway app, under Service Settings, confirm the gateway Windows service is running.
      • If a proxy requires domain authentication, change the gateway service account from the default NT SERVICE\PBIEgwService to a suitable domain user account, then restart the gateway service.
      • After any network or account change, restart the gateway service from Service Settings → Restart the gateway and then try signing in again.
    6. Use logs and Event Viewer for further detail
      • In the gateway app, under Diagnostics, use Export logs and review them for additional Relay or connectivity errors.
      • In Event Viewer on the gateway machine, check Applications and Services Logs → On-premises data gateway service for detailed error messages around the time of the failure.

    Once the network ports test shows Completed (Succeeded) and the required FQDNs/ports are open, the Relay status should move online and the “configured correctly but unreachable due to local network connectivity problems” error should stop appearing.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.