友情提示,会暴露本机的ip,别人可能顺着网线过来打你 @SuppressWarnings("resource") public static void main(String[] args) throws IOException, InterruptedException { //创建数据包接口对象 DatagramSocket da = new