Thread: Connecting...not what you think.

Results 1 to 5 of 5
  1. #1 Connecting...not what you think. 
    Moopoo82
    Guest
    Well i can make my client connect to my server.
    However i don't know how to make my server accept my client. (whenever i join with my client the server kicks me)
    Where do i add the clients uid to? Is that what I'm meant to do? what file do i add the uid to?
    Reply With Quote  
     

  2. #2  
    Registered Member Connecting...not what you think. Market Banned

    JPlusPlus's Avatar
    Join Date
    Jul 2008
    Age
    28
    Posts
    1,179
    Thanks given
    63
    Thanks received
    32
    Rep Power
    730
    Well I know its in client.java i don't remember what you need to search for.

    What source are you using for your server and client?
    Reply With Quote  
     

  3. #3  
    Moopoo82
    Guest
    A source nobody else here would have used, I got it off the old owner of runekeep.
    Its their island pking server. my client is um... gotta think its butters dream (ice mans base)

    and my server only accepts silabsoft/moparscape clients.

    would i have to search for the client uids or something?
    like 86711290?
    Last edited by Moopoo82; 02-08-2009 at 10:01 AM. Reason: edit...
    Reply With Quote  
     

  4. #4  
    Registered Member Connecting...not what you think. Market Banned

    JPlusPlus's Avatar
    Join Date
    Jul 2008
    Age
    28
    Posts
    1,179
    Thanks given
    63
    Thanks received
    32
    Rep Power
    730
    I've never heard of that but if it does have the request for the client UID then find that idk what to call it right now... that snippet and comment it out ;D if that doesn't work then IDK
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Mar 2008
    Age
    32
    Posts
    749
    Thanks given
    18
    Thanks received
    31
    Rep Power
    130
    There is different ways of doing this, but my code is like this. I need to fix it as it still lets them connect rather than blocking them altogether, but it may help...

    Code:
    if (uid == ####) {
    officialclient = true;
    } else {
    disconnected = true;
    }
    further down...
    Code:
    			if (server.enforceclient && !officialclient) {
    				println("Invalid client!");
    				returnCode = 12;
    				disconnected = true;
    				return;

    or another simple way could be

    Code:
    if(!uid == ####) {
    disconnected = true;
    System.out.println(playerName + " was kicked because he was using the wrong client!");
    destruct();
    }
    Message me for a DETAILED security scan of your website.
    Reply With Quote  
     


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
  •