Thread: new clients not connecting to your server?

Results 1 to 5 of 5
  1. #1 new clients not connecting to your server? 
    sean9461
    Guest
    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.

    Code:
    setserver
    replace that line with:
    Code:
    setserver("");
    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:
    Code:
    + port +
    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.
     

  2. #2  
    Registered Member

    Join Date
    Feb 2007
    Posts
    252
    Thanks given
    0
    Thanks received
    0
    Rep Power
    106
    "new clients" o.O... If I can recall, that information isnt in the client anymore ? (sorry a little rusty there)

    Plus the update server/update check will be the issue for most people ; D
     

  3. #3  
    sean9461
    Guest
    well purescape didnt update itself so i dont know..
     

  4. #4  
    Registered Member
    psyhoman's Avatar
    Join Date
    Sep 2007
    Age
    27
    Posts
    2,781
    Thanks given
    56
    Thanks received
    58
    Rep Power
    2774
    100 errors... lame
    Circumstances don't matter, only state of being matters!
     

  5. #5  
    sean9461
    Guest
    you musnt of done right unless its for a client i havnt tested yet.

    it worked for me on purescape.
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •