How/Can I change a servers port?

    Joined
    Jun 19, 2013
    Messages
    42
    Reaction score
    8
    So I have been hosting a Minecraft Server for about a year now, and the port that I have been using is 57921. And in order to get another port forwarded it would cost me $20+/monthly. And in other words I cannot get the port "4242" forwarded on the server computer I use.

    Is there a way to hack/change the port of a server?
     
    Joined
    Jun 20, 2013
    Messages
    2
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    I suggest editing your server batch file and and add to the end after -server:

    -port:57921

    Make sure to include the dash at the beginning. This worked for me and should work for you aswell.
     
    Joined
    Jun 17, 2013
    Messages
    1
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    Linux: StarMade-dedicated-server-linux.sh or MacOS: StarMade-dedicated-server-macosx.command


    #!/bin/bash
    cd \"$(dirname \"$0\")\"
    java -Xms128m -Xmx1024m -jar StarMade.jar -server -port:57921


    Windows: StarMade-dedicated-server-windows.bat


    java -Xms512m -Xmx1024m -Xincgc -Xshare:eek:ff -jar StarMade.jar -server -port:57921
     
    Joined
    Feb 23, 2013
    Messages
    58
    Reaction score
    0
    you can change your starting port from 4242 to whatever in this tab right here:
     
    Joined
    Jun 26, 2013
    Messages
    2
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    ... considering most servers are played online, and you\'d need to set the port in the server\'s configuration, not the client\'s configuration.