I have a 404 status error (page not found). I only want to send a request from my Android app to Mean.io web app through the following url:
http://192.168.0.103:3000/auth/register
I have also tried:
http://10.0.2.2:3000/auth/register
I had already googled but both of the solutions above didn't worked for me. However the url: http://192.168.0.103:3000/auth/register
does work
on my Chrome browser on my pc.
Here is the code:
public class AppConfig {
// Server user register url
//public static String URL_REGISTER = "http://10.0.2.2:3000/auth/register";
public static String URL_REGISTER = "http://192.168.0.103:3000/auth/register";
}
If you want to know where the variable URL_REGISTER
gets used. It's getting used in the registerUser()
method.
I'm posting the method through a link, because the method is too big to post it here. In the link below you can see that the URL_REGISTER
gets used on line 10.