Jump to content
  • 0
Sign in to follow this  
oren234

Need help setting ip

Question

Hi guys i was trying to play with my friends but idk how to set the ip on loader.java file idk if its there or somewhere else i gotta set it i made a jar file and sent it to my friend but his thing is stuck at 1% idk where to put the ip using no ip thing


public static final int SUB_BUILD = 1;
public static final int PORT_ID = 43594;
public static final String SERVER_IP = "localhost";
public static final boolean DISABLE_USELESS_PACKETS = false;
public static boolean webclient = true;
public static String webpage = "rune-force.org";
public static String getWebClientCachePath() {
return getWebClientCachePath(SUB_BUILD);
} Edited by oren234

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0
Alright, first, use code tags so it's not hard for us to help you. Secondly, if you're hosting it off your internet, you need to portforward 43594 or whatever port you use, open the ports in your firewall for the port (I assume 43594), and change the IP of the client to the No-Ip, and compile. To change the IP, search 127.0.0.1 in your client folder or search Ip and you'll probably find the file. Check loader, settings, tradution, runclient, or client.

Share this post


Link to post
Share on other sites
  • 0
sorry i dont know where the ip should be located so thats y i just copy pasted my loader file so dude i changed my server ip = to my local ip i cant put no ip's ip or else it freezes at 1% i changed preferences to my local ip in noip client
then i went gamestub.java and changed 127.0.01 to my local ip
then went client.java and changed the xxxxx.no-ip.biz to my no ip adress then compiled it loads for me then i went and jar signed a client sent to friend n its stuck at 1% for him

Share this post


Link to post
Share on other sites
  • 0
Loader.java
public static final int SUB_BUILD = 1;
public static final int PORT_ID = 43594;
public static final String SERVER_IP = "192.168.x.xx"; <--- before it was ''localhost''
public static final boolean DISABLE_USELESS_PACKETS = false;
public static boolean webclient = true;
public static String webpage = "rune-force.org";
public static String getWebClientCachePath() {
return getWebClientCachePath(SUB_BUILD);
}

--------------------------------------------------------------------------------------------------------------------
gamestub.java

}
if (string.endsWith("198.168.x.xx")) { <---- before it was 127.0.0.01
return true;
}

Share this post


Link to post
Share on other sites
  • 0
helpzzzzzzzz mee

Share this post


Link to post
Share on other sites
  • 0
[code]
[COLOR=#333333]public static final String SERVER_IP = "192.168.x.xx";
[/COLOR][/code]
[COLOR=#333333]
[/COLOR]This is wrong. What you put is your gateway to your computer.[COLOR=#333333]

You need to put your public IP.
[/COLOR]http://www.whatsmyip.org/

Assuming you've port-forwarded of course.

Also, make sure you're compiling correctly... I've seen tons of people have problems because the file was never compiled in the first place.

Share this post


Link to post
Share on other sites
  • 0
ye i compile every time thnx ima try this n see if it works and i portforwarded just needed to know which ip to put gonna try this

Share this post


Link to post
Share on other sites
Sign in to follow this  

×