Messages not working correctly
TheCrafter8000 opened this issue · 12 comments
Hi recently for the past few months the plugin is not saving my ip correctly. It keeps showing me the newbie message or just showing me welcome back messages from other users. I was using serverlistplus at the time and even sense I switched server providers it has been doing this. I tried completely deleting the plugin and it didnt work. Now I switch to this plugin serverlistmotd x and it still does the same thing. How do I fix this?
Hey! Can you answer me the following things:
- Are you using a VPN?
- Are you the only one playing on your server from you home internet connection?
- Do you have a fixed or dynamic/ changing home IP address?
- Which version of Spigot, ServerlistMOTD and ProtocolLib are you using? Which other plugins are you using?
- Have you tried deleting the IP_UUID.dat? (warning: this will reset all known IP player data for ServerlistMOTD)
Let's see if we can solve this problem.
- No I am not using a VPN
- Yes I am using my home internet connection
- idk (I believe I have a static)
- Im using PaperMC 1.17 (not sure what verison)
- Yes and it just regenerates with the same exact data
Everyone else that plays on my sevrer have the same issue
- I'm using version v4.7.0-SNAPSHOT-b512 of ProtocolLib. I'm using version vX-2020-09-05 of ServerlistMOTD X. I never had this issue on my old server host but when I transferred the files to the new server host this issue started. I transferred hosts around late Feburary.
- I just tried that and the IP's are reset but the custom messages are still not working
Can you take a look into the IP_UUID.dat with an editor of your choice? Are the IPs different? Is there more than one entry.
- Can you also tell me which version of ServerlistMOTD and ProtocolLib you are using. And your other plugins? Did you have this problem pre-1.17?
- You have to delete it while the server is stopped. Can you please re-try?
If the problem persists after doing 5. let me know.
Also, would you mind sharing the IP_UUID.dat with me? If you have no problem with that, you can send it to me via [email protected]
Thanks for attaching the IP_UUID.dat! Weirdly, the IPs of all players belong to the OVH IP range. So I guess your hosting provider proxies all user connections and gives them a new/ "internal" IP. That would also explain why known players get the wrong user name or are identified as a newbie – your hosting provider/ proxy, or whomever, assigns your player connection a new IP or a previously used IP by another player.
Are you using some kind of domain for connecting to your server? In that case, maybe your proxy (nginx, apache) is misconfigured.
There you go, TCP Shield seems to be the culprit. I think you have two options:
- You absolutely need TCP Shield. If that's the case there is nothing I can do to make the player recognition work, as TCP Shield proxies all connections through their infrastructure iiuc. Don't use %player% and configure the same motd for newbie and regulars to to have a deterministic motd.
- You don't need TCP shield. So turn it off and everything should start working again on the ServerlistMOTD side. If you just need a domain, you only have to configure the A and SRV entry in your DNS settings @ domain registrar afaik.
Let me know if you can close the issue now.
Ok it could seem like that but for some reason the firewall looks like this. The IP_UUID.dat is similar or the same to the firewall configurations.
https://ibb.co/2ZHYcFf
https://ibb.co/gwjGny5
https://www.filemail.com/d/jllgnljeasgjysc
The firewall rules are what one should expect from a service like that. I can't give you support for TCP Shield though. But you won't solve your problem by looking at firewall rules. You somehow have to preserve the origin IP of the request and stop the mapping of IP addresses to internal ones you see in the firewall rules. Just hit up TCP Shield and ask what you can do so that their product doesn't fuck up IP-based plugins like mine.
I close this issue now as this is nothing related to ServerlistMOTD. But please keep me updated here as I would like to know if you could eventually solve your problem.