1

I wrote a java program that opens a multicast socket and gets a packet from any sender using same multicast IP.

I want know the name of the host and IP that is sending.

THANKS IN ADVANCE

Marko
  • 20,385
  • 13
  • 48
  • 64
Sai Krishna
  • 39
  • 1
  • 7

1 Answers1

0

The source address is in the packet. In C it is available via a result argument of recv(); in Java via a method of DatagramPacket; etc.

user207421
  • 305,947
  • 44
  • 307
  • 483