+ Start a Discussion
sony sonusony sonu 

how to authenticate salesforce to local server???????

for making rest callouts to external application by using webapi which is hosted in private , for this salesforce should authenticate with the local server..then how to authenitcate both ..???? the server is locallay hosted..
NagendraNagendra (Salesforce Developers) 
Hi Sony,

A localhost means this computer, and it can access services running locally on your computer and not on the internet. And because it's local to your computer and not exposed to the internet, you cannot connect Salesforce (or any other external services) to any of your local running services.

There are tools which help expose local running servers on public URL to be able to make connections. You may like to take a look at  https://ngrok.com/ .

You need to understand how a localhost vs. that on the internet works. If you cannot expose your localhost to a publicly accessible IP, there’s no way to achieve it, not only from Salesforce but from any external facing services.

Hope this helps.

Kindly mark this as solved if the reply was helpful.