Jump to content

Featured Replies

Posted
comment_5401

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";

Edited by Pressure

  • 9 months later...

Create an account or sign in to comment