Results 1 to 9 of 9
  1. #1
    Lionlev is offline Senior Member
    Join Date
    May 2012
    Posts
    172
    Rep Power
    3

    Exclamation Protect java server from telnet connections?

    Hi, I've created a java server, but I can connect via telnet, which is bad, people can mess the server up... Is it possible to protect it somehow?
    WARNING I am Russian so it's possible that I wont understand you correctly...

  2. #2
    Lionlev is offline Senior Member
    Join Date
    May 2012
    Posts
    172
    Rep Power
    3

    Exclamation Reject any telnet connection? (Protect my server)

    Is it possible to do that? I am using Sockets
    WARNING I am Russian so it's possible that I wont understand you correctly...

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Protect java server from telnet connections?

    Please go through the Forum Rules -- particularly the second paragraph.

    I've merged the two threads here. Please don't double post the same question in future.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    noctarius is offline Member
    Join Date
    Jun 2012
    Location
    Remscheid, Germany
    Posts
    61
    Rep Power
    0

    Default Re: Protect java server from telnet connections?

    Just don't use text protocols.

  5. #5
    Lionlev is offline Senior Member
    Join Date
    May 2012
    Posts
    172
    Rep Power
    3

    Default Re: Protect java server from telnet connections?

    Quote Originally Posted by DarrylBurke View Post
    Please go through the Forum Rules -- particularly the second paragraph.

    I've merged the two threads here. Please don't double post the same question in future.

    db
    Ok sorry..
    WARNING I am Russian so it's possible that I wont understand you correctly...

  6. #6
    Lionlev is offline Senior Member
    Join Date
    May 2012
    Posts
    172
    Rep Power
    3

    Default Re: Protect java server from telnet connections?

    Quote Originally Posted by noctarius View Post
    Just don't use text protocols.
    I guess I should use bytes? Like convert string to bytes?
    WARNING I am Russian so it's possible that I wont understand you correctly...

  7. #7
    noctarius is offline Member
    Join Date
    Jun 2012
    Location
    Remscheid, Germany
    Posts
    61
    Rep Power
    0

    Default Re: Protect java server from telnet connections?

    Strings are just bytes. You should look for a binary protocol.

  8. #8
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,785
    Blog Entries
    7
    Rep Power
    21

    Default Re: Protect java server from telnet connections?

    Quote Originally Posted by Lionlev View Post
    Hi, I've created a java server, but I can connect via telnet, which is bad, people can mess the server up... Is it possible to protect it somehow?
    That would be a very weak server implementation and that makes telnet a nice tool for testing and improving your server.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  9. #9
    Lionlev is offline Senior Member
    Join Date
    May 2012
    Posts
    172
    Rep Power
    3

    Default Re: Protect java server from telnet connections?

    So... What do you suggest?
    If I will make the server ask for a password, and I will make a client send the password, that might work. BUT everyone can decompile the client and get that password out of it and use it in telnet to login and send the coordinates of his char. People in the game will see him stuck somewhere in air and teleporting to different positions..

    Any tips?
    WARNING I am Russian so it's possible that I wont understand you correctly...

Similar Threads

  1. How do I protect images in my java project?
    By Lionlev in forum New To Java
    Replies: 3
    Last Post: 10-19-2012, 10:06 PM
  2. How the java vm protect it's memory?
    By watsonsong in forum Advanced Java
    Replies: 6
    Last Post: 10-01-2012, 02:54 PM
  3. Replies: 0
    Last Post: 04-02-2012, 10:24 AM
  4. how to protect java codes from being seen?
    By anthrax in forum Eclipse
    Replies: 5
    Last Post: 10-14-2009, 04:43 PM
  5. problem with Java and telnet
    By artofabhi in forum Networking
    Replies: 0
    Last Post: 01-30-2008, 04:52 AM

Posting Permissions

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