简体   繁体   English

检查 IP 是否连接到 Java 服务器上的特定端口

[英]Check if an IP is connected to a specific port on a Java server

Creating a Minecraft server that shares the same server as what our RTC server is using.创建一个与我们的 RTC 服务器使用相同的服务器的 Minecraft 服务器。

Players will be connecting to the Minecraft server's port AND the RTC server's port.玩家将连接到 Minecraft 服务器的端口和 RTC 服务器的端口。 I want to check to see if the player is connected to both of those ports on my server.我想检查播放器是否连接到我服务器上的这两个端口。

How would I go about this?我该怎么办?

我能够使用 netstat 来识别与服务器的连接,然后交叉检查 IP 地址。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM