Oh god.
'hosted' is just a boolean set by someone. If you're incapable of tracking it down and finding out what the definition of it is and what it does, well, then I only have one piece of advice for you: Learn java. Plenty of tutorials out there, I bet you haven't even looked at one.
The boolean is probably set as..
String IP = Settings.hosted ? "XX.XXX.X.XX" : "127.0.0.1";
Either way, you're forced to track this down as you must change the IP the client will attempt to connect to.