Hi I have an issue trying to figure out how to connect from my ionic project to WCF service on another pc (C# Application) on the local network. I have ensured that the connection between the pc's are working and that the web service is working. I am using Ionic serve
to run my project in the browser, and I have follow the steps by changing my proxy for CORS but still the same error is showing :
GET http://localhost:53101/TruckService.svc net::ERR_CONNECTION_REFUSED
http://localhost:53101/TruckService.svc (My WCF Address)
and also this runs through all of my html files in the templates folder before the error shows: XHR finished loading: GET "http://localhost:8100/templates/tab-account.html".
this is my controller for connecting to the service I found on a tutorial.
.controller('DashCtrl', function($scope, $http) {
$http.get('http://localhost:53101/TruckService.svc').
success(function(data,GetQuoteAsync){
console.log(GetQuoteAsync),
console.log(data);
});
})
I am fairly new with Angularjs and Ionic and I am not sure exactly where I am going wrong. if I left out something or wasn't clear enough please let me know.
thanks
Problem was with the localhost in my $http.get
link I set it to the ip address from the other pc like this http://192.168.1.18/TruckService.svc