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
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.
User | Count |
---|---|
254 | |
106 | |
92 | |
47 | |
37 |