0

I have an list of IP which I am getting using UDP broadcasting, so on the bases of Alive/Death packet ,i got to know whether user alive or went off.

But i have an single case suppose user went out from network before sent death packet, then how can I detect user live or not.

- Solution which i have:

So for this purpose I m running an thread ,in which i send an dummy data to all user(from ip list), so if any ip is not available then it respond IO exception. but it taking to much time to identify ip in network.

pls suggest me if have any faster solution.

CoDe
  • 11,056
  • 14
  • 90
  • 197

1 Answers1

1

try pinging:

Ping

and this article:

Java Ping command

Hope this helps

Community
  • 1
  • 1
DArkO
  • 15,880
  • 12
  • 60
  • 88