Search the Community
Showing results for tags 'wrong.'.
-
I still get error connecting to server, I feel like I am over looking or thinking something... I know I am kinda trash at coding but, not THAT trash, let me go over what I have done. client.java server = Config.IP; public static String server = Config.IP; Then, over in Config.java (where the config.ip is getting directed to) public static final boolean LOCALHOST = true; (localhost is true) public static final String IP = LOCALHOST ? "127.0.0.1" : VPS_IP; (localhost true to local ip) public static final int PORT = 43594; (port is fine) WHAT AM I OVERTHINKING??? THINGS I HAVE TRIED: just making the public static final String IP = "127.0.0.1"; Same with server and public static String server equaling "127.0.0.1";