LeonHartley / Comet-Java

Habbo emulator written in Java.
Other
3 stars 4 forks source link

Missing: proxy settings #195

Closed Twanvanl closed 4 years ago

Twanvanl commented 5 years ago

There are no proxy settings for the emulator. If i run a hotel with an tcp proxy now, i cant do ip ban because of that.

billiboy commented 5 years ago

Change settings "use_database_ip" and insert php to get Real ip

Twanvanl commented 5 years ago

You have discord or skype? Easier to help me via there maybe.

Twanvanl commented 5 years ago

We tried to put userIp() in there (function from the CMS where it gets user real IP), doesnt work. Any suggestions?

billiboy commented 5 years ago

Insert query in the cms "update Players set last_ip = phpcode where id = playerid

billiboy commented 5 years ago

And change use_databaseip in server_settings

I've already used a tcp proxy with comet in the past and I've solved that

Twanvanl commented 5 years ago

What do you mean insert query in the CMS? We already have a query that it updates last_ip when a user is logging in.

billiboy commented 5 years ago

in the client page do you already have the query that updates last_ip? did you do as I wrote you to edit use_databaseip in the server_settings table

billiboy commented 5 years ago

do you use cloudflare?

Twanvanl commented 5 years ago

Yes

LeonHartley commented 5 years ago

If you wanna use a TCP proxy, you'll have to make it so when the player opens the client, you store their real IP address then set "use_database_ip" to '1' in settings.