I am making an application that uploads images to server and updates its database to server in android while executing it, it shows an error
Connection to ht
When you test with device you want to add your PC ip address.
in pc run in cmd Ipconfig
Ipconfig
in ubuntu run terminal ifconfig
ifconfig
Then use "http://your_pc_ip_address:8080/register" insted of using "http://10.0.2.2:8080/register"
"http://your_pc_ip_address:8080/register"
"http://10.0.2.2:8080/register"
in my pc = 192.168.1.3
and also add internet permission to Manifest