Solved Run server locally?

Discussion in 'Plugin Development' started by adam753, Sep 1, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    adam753

    Is there any way I can test my plugins without having to set up a server and go through all this port-forwarding garbage that doesn't work? My only alternative would be to find a friend whose server does work and get him to test every single release, and that would be someone with a lot of patience. I don't care if this thread is in the right place and I don't care what type of servers you don't support, I know the rules and this does not break them.
     
  2. Offline

    coasterman10

    Yes, you can download the latest CraftBukkit dev build, copy it to a server folder, and run it. This is what I do to test all my plugins. You can also set it to offline mode if you need to test without an Internet connection.

    About the port forwarding:
    1. You only need to do it to get people outside your house to connect
    2. It does work if you do it right.
     
  3. Offline

    gabizou

    You don't need to go through port forwarding if you just need to test locally with one player, if you need two, well, then yes, you need to host a server with open ports.
     
  4. Offline

    adam753

    coasterman10 gabizou Okay, maybe I was misled by a google result then. When I run the server and try to connect to localhost, it refuses the connection. Any ideas?
     
  5. Offline

    coasterman10

    Is the server port set to 25565? Also what does the console say?
     
  6. Offline

    adam753

    coasterman10 Server port is 25565, all the settings are default. The console instantly says "[internal ip] lost connection" and the client says "Logging in" forever. A result on google had me convinced that this was because I hadn't done the port fowarding nonsense but I guess that doesn't make sense.
     
  7. Offline

    coasterman10

    I'm not sure what could be causing this. Try restarting the server or using a stable Beta build.
     
  8. Offline

    adam753

    coasterman10 Thanks, changing to the current beta build has fixed it. What a strange issue.
     
Thread Status:
Not open for further replies.

Share This Page