Consumming RestApi in my ionic app v3 with my phone

hello,the problem that i m facing is that when i connect my ionic app with my phone android and i tried to consume an Restapi with This URL ‘http://localhost:8080/AG
the error shown is : GET http://localhost:8080/AG net::ERR_CONNECTION_REFUSED
Any help ?