get the address and port of the packet sent using a DatagramChannel?

how do I get the address and port of the packet sent using a DatagramChannel? Like before I was receiveing the packet from the client, than using the packets address and port to send one back.

Have you tried the API?

Yeah, I figured it out already, but since you answered correctly first I gave you a medal :3

Yay :smiley: