On-premise data gateway DO NOT recognize HOSTS file

HK Power Platform Admin
1 min readFeb 19, 2021

--

That’s it. The title said it all.

I seriously doubt how many SharePoint administrators have even tried to setup on-premise data gateway in their environment. Giving that the gateway have been released for several years, I should not be the only SP admin come across this problem?

The scenario is that, in our testing environment, our SharePoint’s AAM is http://sharepoint.com. Of course we do not owe this domain and we didn’t add this domain name in our company’s DNS. Our developers and testers need to add “sharepoint.com xxx.xxx.xxx.xxx (the WFE ip address)” in their PC’s HOSTS file. Then they are able to browse http://sharepoint.com

However, since on-premise data gateway do not recognize HOSTS file, we cannot configure the gateway correctly. The gateway always throwing 502 bad gateway error. It spent me days to realize that 502 error actually represent the “on-premise data gateway” program cannot connect to SharePoint. Come on! Why don’t you just return “there is not SharePoint in the target URL” error?

To work around our situation, we add the WFE’s ip address into SharePoint’s AAM. In other word, all internal users can browse the site with http://xxx.xxx.xxx.xxx. After AAM setup, the gateway can be configured with this new URL (ip address).

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

HK Power Platform Admin
HK Power Platform Admin

Written by HK Power Platform Admin

Cannot find SharePoint job. Switched to Power Platform.

No responses yet

Write a response