[SPIGOT-2636] Ability to get the IP/hostname players are connecting to Created: 27/Aug/16  Updated: 27/Aug/16  Resolved: 27/Aug/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Yukar9 Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: None


 Description   

In the handshake packet that clients send as the very first thing, is a field that contains the IP/hostname that the client is attempting to connect to. I would suggest making this visible through the bukkit/spigot API.

This could for example allow plugins that send players to different worlds based on what hostname they type in, all without the need for bungeecord.

To me it would make sense to add a field to the AsyncPlayerPreLogin event, but in general just making it available would be great.



 Comments   
Comment by md_5 [ 27/Aug/16 ]

https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/player/PlayerLoginEvent.html#getHostname()

Generated at Sun Mar 16 22:57:13 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.