is it possible that i can get the address and port from the other devices if they send me a message? Right now when a device sends a string to the host i recieve the message alongside their ip and port
Yes. That registration process of "Hi, send me messages to this address" is a common pattern. You're basically describing a pubsub at that point. A message published (sent) to N subscribers.