cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gwaindepy
New Member

Connecting Power Apps to Central On Premise

i am having challenges connecting to Business Central installed on my machine (localhost).

I have put the following url as http://192.168.100.5:14048/BC140/ODataV4 and username and password. upon trying to connect i get the below error:

 

{
"error": {
"code": 502,
"source": "unitedstates-002.azure-apim.net",
"clientRequestId": "4b223bad-9e2b-4909-88c2-074e2f079fce",
"message": "BadGateway",
"innerError": {
"status": 502,
"message": "Unable to connect to the remote server.\r\n inner exception: An error occurred while sending the request.\r\n inner exception: Unable to connect to the remote server\r\n inner exception: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.100.5:14048\r\nclientRequestId: 4b223bad-9e2b-4909-88c2-074e2f079fce",
"error": {
"message": "Unable to connect to the remote server.\r\n inner exception: An error occurred while sending the request.\r\n inner exception: Unable to connect to the remote server\r\n inner exception: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.100.5:14048"
},
"source": "dynamicssmbonprem-eus2.azconn-eus2.p.azurewebsites.net"
}
}
}

Session ID: f24e0767-3b04-4c75-9aef-4e147cfb6d83

1 REPLY 1
Pstork1
Dual Super User
Dual Super User

To connect to an on-premises resource you'll need either an on-premises gateway or the IP address will need to be published to an internet accessible IP address.  The 192.168 range you are using is a private range that only works within a Local area network.  I doubt that business central on your machine has an Internet Accessible address.  So you'll need a gateway.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,535)