Sending packets to 255.255.255.255 by Java DatagramSocket fails

前端 未结 4 1483
傲寒
傲寒 2020-12-11 01:55

I\'m programming a networking program in java , and I want to send some Packets to 255.255.255.255, but it fails , even when I send them to 192.168.1.255, which according to

4条回答
  •  感动是毒
    2020-12-11 02:19

    192.168.1.255 
    
    • Please check your subnet mask in your network. It might be possible that your sending machine and the receiving machine are not part of the same network.
    • Please check that the receiving machine exists in your network.
    • If there's a router in between your machines, I don't think the message will be transmitted.

提交回复
热议问题