Sending Wake on LAN packet from Android to PC

前端 未结 3 1510
小蘑菇
小蘑菇 2020-12-24 04:11

My Android app sends/retrieves data to/from the user\'s own PC using HTTP and it\'s working fine with a handful of beta testers. I now need to consider a situation where the

3条回答
  •  我在风中等你
    2020-12-24 04:32

    java.net.DatagramSocket would probably work well enough, since WoL does not provide delivery confirmation. It's doubtful you'll be able to get it to work outside the local network, since WoL packets are broadcast across the network with the destination address as the MAC address of the target computer and most routers are setup to block broadcast packets from the WAN.

提交回复
热议问题