I'm writing Android app and need to know my public IP. In my app i'm using Smack library for conversation with XMPP server (that needed not only to know my IP)
Bind message, received from server looks like:
<iq id="_xmpp_bind1" type="result">
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
<jid>[email protected]/Smack</jid>
</bind>
</iq>
But I'm waiting it looks like:
<iq id="_xmpp_bind1" type="result">
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
<jid>[email protected]/11.22.33.44:12345</jid
</bind>
</iq>
Where instead of 11.22.33.44 should be my public IP.