Android Question My app can't access to my pc localhost for read data

RUNO

Active Member
Licensed User
Longtime User
My greetings

I tried to run the application on my mobile phone, but the application cannot access files on the PC .
On the emulator it works but on mobile it does not.
All possible addresses are used.
localhost
127.0.0.1
10.0.2.2
IPv4 Address
with ports 80,8080 and 82
Firewall off
Some time gives this message
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
** Service (httputils2service) Start **
ResponseError. Reason: Forbidden, Response: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access this resource.</p>
<hr>
<address>Apache/2.4.51 (Win64) PHP/7.4.26 Server at 192.168.2.235 Port 80</address>
</body></html>
ResponseError. Reason: Forbidden, Response: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>


or this
ResponseError. Reason: java.net.ConnectException: Failed to connect to /127.0.0.1:80, Response:

Any idea to solve the problem ?
Thanks advance
 
Last edited:
Top