Quackster / Kepler

A server created in Java designed to revive Habbo Hotel v14 from the 2007 era.
GNU General Public License v3.0
230 stars 60 forks source link

Cannot launch run.bat with Public IP in server.ini config #20

Closed narmer6 closed 3 years ago

narmer6 commented 3 years ago

2021-01-23T18:19:35.842 INFO [org.alexdev.kepler.Kepler] - Kepler - Habbo Hotel Emulation (max version supported: v26) 2021-01-23T18:19:35.844 INFO [org.alexdev.kepler.dao.Storage] - Connecting to MySQL server 2021-01-23T18:19:35.874 INFO [com.zaxxer.hikari.HikariDataSource] - processing - Starting... 2021-01-23T18:19:35.971 INFO [com.zaxxer.hikari.HikariDataSource] - processing - Start completed. 2021-01-23T18:19:35.971 INFO [org.alexdev.kepler.dao.Storage] - Connection to MySQL was a success 2021-01-23T18:19:35.972 INFO [org.alexdev.kepler.Kepler] - Setting up game 2021-01-23T18:19:36.216 INFO [org.alexdev.kepler.game.commands.CommandManager] - Loaded 26 commands 2021-01-23T18:19:36.518 ERROR [ErrorLogger] - Failed to start MUS server on address: redactedIP:12322 2021-01-23T18:19:36.518 ERROR [ErrorLogger] - Please double check there's no programs using the same port, and you have set the correct IP address to listen on. 2021-01-23T18:19:36.536 INFO [org.alexdev.kepler.server.rcon.RconServer] - RCON (remote connection) is listening on 127.0.0.1:12309 2021-01-23T18:19:36.564 ERROR [ErrorLogger] - Failed to start server on address: redactedIP:12321 2021-01-23T18:19:36.564 ERROR [ErrorLogger] - Please double check there's no programs using the same port, and you have set the correct IP address to listen on.

Server can launch just fine using localhost, I have checked ports, not in use, port forward, set static IP, etc.

Jordo-o commented 3 years ago

Your local PC cannot start a server on your Public IP. You need to place the local IP (the interface IP of your PC) in the server.ini and change the settings in your router to NAT the traffic from the public IP to oyur local IP and so the server.

See NAT, for more information about NAT.

narmer6 commented 3 years ago

@Jordo-o Thank you for your response, that explains a lot, and I didn't even consider that.

I have changed the settings like you suggested, but upon log into the DCR, I am immediately disconnected, don't have anyone to help me test, but using NAT will I not be able to connect to the DCR from the host? I've read some threads about people not being able to connect but other people can, so wondering if this will be the case. If so I will just switch the hosting to a different server

Jordo-o commented 3 years ago

@narmer6, Maybe not all ports are forwarded correctly or maybe an error in the logging form the server will explain the disconnect. Unfortunately, can't help you much more, as I don't know your current setup.

Quackster commented 3 years ago

Not a problem with Kepler, configure server.ini correctly.