Hi everyone,
I’m trying Backendless on my localhost but how can I initialize my app to use localhost?
Hi Hedayat,
In Android you would do this:
Backendless.setUrl( "http://<server address>/api" );
In JS:
Backendless.serverURL( "http://<server address>/api" );
In Objective-C:
backendless.hostURL = @"http://<server address>/api";
where <server address> is either the host name or IP address of the server/virtual machine where Backendless is installed.
Regards,
Mark
Thank you so much for your quick reply.
As shown in the quickstart guide:
Android:
com.backendless.Backendless.setUrl( “http://[IP ADDRESS]:8080/api” );i
iOS:
backendless.hostURL = @“http://[IP ADDRESS]:8080/api”;
JavaScript:
Backendless.serverURL = “http://[IP ADDRESS]:8080/api”;
.NET:
BackendlessAPI.Backendless.URL = “http://[IP ADDRESS]:8080/api”;
PHP:
Backendless::setUrl( “http://[IP ADDRESS]:8080/api”)