please note this is my first tutorial i hope it all works
this is a tutorial to make your client connect to your server
mainly the ones with new gameframes ect
im sorry if this has been posted before but ive seen lots of people asking and i cant see a tutorial. if so please delete this one.
firstly open client.java and search.
replace that line with:
now hit next on the search window again for setserver
and replace it with:
Code:
setserver(args[0]);
now hit next again you should find:
Code:
public static void setserver(String s, String p)
{
server = s;
port = p;
}
and replace all of that with:
Code:
public static void setserver(String s)
{
server = s;
}
next search client.java for:
Code:
try {
aPort = Integer.parseInt(port);
} catch(NumberFormatException NFE) { }
aClass24_1168 = new Class24(this, -978, method19(aPort + anInt958));
long l = Class50.method583(s);
int i = (int)(l >> 16 & 31L);
aClass30_Sub2_Sub2_1192.anInt1406 = 0;
aClass30_Sub2_Sub2_1192.method398(14);
aClass30_Sub2_Sub2_1192.method398(i);
aClass24_1168.method271(2, 0, aClass30_Sub2_Sub2_1192.aByteArray1405, 0);
for(int j = 0; j < 8; j++)
aClass24_1168.method268();
note: change "(43594 " the number whith your port.
replace the whole thing with:
Code:
aClass24_1168 = new Class24(this, -978, method19(43594 + anInt958)); //port
long l = Class50.method583(s);
int i = (int)(l >> 16 & 31L);
aClass30_Sub2_Sub2_1192.anInt1406 = 0;
aClass30_Sub2_Sub2_1192.method398(14);
aClass30_Sub2_Sub2_1192.method398(i);
aClass24_1168.method271(2, 0, aClass30_Sub2_Sub2_1192.aByteArray1405, 0);
for(int j = 0; j < 8; j++)
aClass24_1168.method268();
next search:
Code:
aSocket832 = method19
in brackets there will be a port number change it to your port.
now only if you want the server port removing do the folowing:
search:
and delete the whole line and the one line below it.
__________________________________________________ _________
save and compile and if you have folowed this correctly you should now be able to connect.
PS. i tested this on purescape so i know it works for that, not to sure about others, let me know which they work on and il add them to my list.