sirjonasxx / G-Earth

Cross-platform Habbo packet manipulator
MIT License
88 stars 47 forks source link

Randomize nitro websocket port #143

Closed UnfamiliarLegacy closed 1 year ago

UnfamiliarLegacy commented 1 year ago

Some hotels detect G-Earth by checking for a successful connection on localhost:2096. This PR changes the port to be allocated by random.

About port conflicts

That won't happen. According to the documentation I read, the random port is chosen by Java. Which internally uses the relevant OS apis to determine an random ephemeral port.