title: How to get my public IP from XMPP bind message?
body: <p>I'm writing Android app and need to know my public IP. In my app i'm using <a href="http://www.igniterealtime.org/projects/smack/" rel="nofollow">Smack</a> library for conversation with XMPP server (that needed not only to know my IP)</p>
  
  <p>Bind message, received from server looks like:</p>
  
  <pre><code>&lt;iq id="_xmpp_bind1" type="result"&gt;
     &lt;bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"&gt;
        &lt;jid&gt;user@jabber.example.com/Smack&lt;/jid&gt;
     &lt;/bind&gt;
  &lt;/iq&gt;
  </code></pre>
  
  <p>But I'm waiting it looks like:</p>
  
  <pre><code>&lt;iq id="_xmpp_bind1" type="result"&gt;
      &lt;bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"&gt;
         &lt;jid&gt;user@jabber.example.com/11.22.33.44:12345&lt;/jid
      &lt;/bind&gt;
  &lt;/iq&gt;
  </code></pre>
  
  <p>Where instead of 11.22.33.44 should be my public IP. </p>