我的主机上有一个java应用程序,它将UDP数据包发送到端口:例如8888。telnet localhost 5554 redir add udp:8888:8888
final DatagramSocketudpSocket = new DatagramSocket(8888);String data
我正尝试在IP地址"255.255.255.255“上发送UDP广播,以便在我的网络中发现设备。程序会执行,但我在Wireshark中看不到任何东西。当我将IP地址更改为网络中的已知IP时,我可以在Wireshark中看到数据包。怎么回事?public static void main(String args[]) throws Exception String Broadcastaddress = new String("255.255.255.255");
int po
这是我监听0.0.0.0的udp_broadcast服务器代码 socket = new DatagramSocket (7777,InetAddress.getByName("0.0.0.0System.out.println("packet sent to "+sendpacket.getAddress().getHostAddress()); }在客户端,iam广播数据包255.255.255.255,以便最终获得服务器的回复,并获取服务器的ip地址
ud