无法连接到端口80上的192.168.95.2

时间:2017-09-03 20:12:11

标签: java android

我试图在真正的Android设备上运行我的Android应用程序,我把IPv4地址作为URL,但我得到一个错误,说无法连接到端口80上的192.168.95.2,我尝试了所有的东西以前的问题,但没有解决也检查了我的权限,并确保我添加了互联网权限:/
这是代码:

public class Constants {

public static final String BASE_URL = "http://192.168.95.2/";
public static final String REGISTER_OPERATION = "register";
public static final String LOGIN_OPERATION = "login";
public static final String CHANGE_PASSWORD_OPERATION = "chgPass";

public static final String SUCCESS = "success";
public static final String FAILURE = "failure";
public static final String IS_LOGGED_IN = "isLoggedIn";

public static final String NAME = "name";
public static final String EMAIL = "email";
public static final String UNIQUE_ID = "unique_id";

public static final String TAG = "Learn2Crack";

0 个答案:

没有答案