FAiled to connect to /10.0.2.2 nativescript


#1

i need help i have this probleme failed to connect to /10.0.2.2 nativescript why ?
code:
apiUrl=“http://10.0.2.2:5000/api/services/app/ZabouneMatiere”;
constructor( private http: Http) {
this.GetData();
}
GetData() {
console.log('sending to ’ + this.apiUrl);
return this.http.get(this.apiUrl + ‘/GetAll?SkipCount=1&MaxResultCount=100’, JSON.stringify(Object))
.map(data => data.json().result.items)
.subscribe(data => this.items = data);

}