If you control the code of clients sending messages, you can come up with some property name, for example, "IPOfSender", and include this property in every message with Message.setStringProperty ().
// client code String myIPString = ...; Message m = session.createTextMessage(); m.setStringProperty("IPOfSender", myIPString); ...
John m
source share