Create java server

Results 1 to 3 of 3
  1. #1
    Novice fissban is offline
    MemberRank
    May 2020 Join Date
    1Posts

    Create java server

    First of all I want to introduce myself, my nickname is fissban and I have worked a long time in java and sometimes in Lineage opensource serverpacks (https://sourceforge.net/projects/l2jadmins/).
    A few days ago I started working on a java server for MuOnline and although MuOnline requires a lot of client editing but I am interested in achieving the versatility of the server in java.I already have an armed base but I can't get any clients to connect to my socket.

    PHP Code:
    try (ServerSocket serverSocket = new ServerSocket(44405))
    {
        
    System.out.println("open socket in port " 44405);
        while (
    true)
        {
            
    Socket socket serverSocket.accept();
            new 
    LoginThread(socket);
            
    System.out.println("---------- New client connected in " port " ----------");
        }
    }catch (
    Exception e)
    {
        
    LOGGER.severe("fatal error in Socket client");
        
    e.printStackTrace();

    The Main that I am using has as ip address 127.0.0.1 and I have tried several mains, several clients of different versions but none seems to generate a connection to my port.Where am I wrong


  2. #2

  3. #3
    Developer nevS is offline
    MemberRank
    Aug 2005 Join Date
    GermanyLocation
    534Posts

    Re: Create java server

    pro tip: don’t use the IP 127.0.0.1, the main.exe won‘t connect to it. Try 127.127.127.127 or any other 127.x.x.x



Advertisement