Can't get sender's IP address with BOSH
I'm experimenting with an ability to get sender's IP address
For example, I have custom Tigase plugin.
When I use the desktop/mobile client and log packet.getFrom() - I get
email@example.com/10.xx.xxx.xx_5222_xx.xxx.xx.xx_64813 where user's IP address is in bold
With BOSH I receive next:
firstname.lastname@example.org/ab040b3f-4bea-476f-8b16-fcf16962bd22 with no IP
Is it possible to extract the sender's IP when use BOSH?
Added by Artur Hefczyc about 4 years ago
There is no information about Bosh IP address in a plugin. The Bosh session is not identified by the TCP/IP connection because, each Bosh request can be made on a different TCP/IP connection. The client port number is different and IP address can be different too, although in most cases it is the same.