<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Get the ip address of your device</title>
	<atom:link href="http://www.droidnova.com/get-the-ip-address-of-your-device,304.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.droidnova.com/get-the-ip-address-of-your-device,304.html</link>
	<description>Rapid android development from Berlin</description>
	<lastBuildDate>Sat, 04 Feb 2012 17:50:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: kaung</title>
		<link>http://www.droidnova.com/get-the-ip-address-of-your-device,304.html/comment-page-2#comment-2538</link>
		<dc:creator>kaung</dc:creator>
		<pubDate>Mon, 30 Jan 2012 06:42:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=304#comment-2538</guid>
		<description>Thanks for your helpful answer. I ll learn more about IPV6. 
Thanks</description>
		<content:encoded><![CDATA[<p>Thanks for your helpful answer. I ll learn more about IPV6.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.droidnova.com/get-the-ip-address-of-your-device,304.html/comment-page-2#comment-2528</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Fri, 27 Jan 2012 09:23:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=304#comment-2528</guid>
		<description>This is the new IPv6. It is a valid IP address so the code works. It is just a new version of IP as the old version wasn&#039;t able to generate enough different IP addresses for all devices connected to the internet. More information can be found on &lt;a href=&quot;http://en.wikipedia.org/wiki/IPv6&quot; rel=&quot;nofollow&quot;&gt;Wikipedia&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>This is the new IPv6. It is a valid IP address so the code works. It is just a new version of IP as the old version wasn&#8217;t able to generate enough different IP addresses for all devices connected to the internet. More information can be found on <a href="http://en.wikipedia.org/wiki/IPv6" rel="nofollow">Wikipedia</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kaung</title>
		<link>http://www.droidnova.com/get-the-ip-address-of-your-device,304.html/comment-page-2#comment-2527</link>
		<dc:creator>kaung</dc:creator>
		<pubDate>Fri, 27 Jan 2012 06:58:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=304#comment-2527</guid>
		<description>The code is working fine on other devices except on Android OS 4.0.3. It returned the fe80::b607:f9ff:fee5:487e..etc ... I dont know why.. Please help me 

Thanks</description>
		<content:encoded><![CDATA[<p>The code is working fine on other devices except on Android OS 4.0.3. It returned the fe80::b607:f9ff:fee5:487e..etc &#8230; I dont know why.. Please help me </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LIRVAT Lévi</title>
		<link>http://www.droidnova.com/get-the-ip-address-of-your-device,304.html/comment-page-2#comment-2413</link>
		<dc:creator>LIRVAT Lévi</dc:creator>
		<pubDate>Wed, 28 Dec 2011 17:12:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=304#comment-2413</guid>
		<description>The method Formatter.formatIpAddress is deprectaed. It will work for ipV4 addresses but when you&#039;ll have to get the ipV6 address it may fail.</description>
		<content:encoded><![CDATA[<p>The method Formatter.formatIpAddress is deprectaed. It will work for ipV4 addresses but when you&#8217;ll have to get the ipV6 address it may fail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tuhin Bhatt</title>
		<link>http://www.droidnova.com/get-the-ip-address-of-your-device,304.html/comment-page-2#comment-2341</link>
		<dc:creator>Tuhin Bhatt</dc:creator>
		<pubDate>Sat, 29 Oct 2011 14:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=304#comment-2341</guid>
		<description>here is my code sorry for the double post

WifiManager wifimanager=(WifiManager) getSystemService(WIFI_SERVICE);
tv1.append(&quot;The ip address is &quot;+Formatter.formatIpAddress(wifimanager.getConnectionInfo().getIpAddress()));</description>
		<content:encoded><![CDATA[<p>here is my code sorry for the double post</p>
<p>WifiManager wifimanager=(WifiManager) getSystemService(WIFI_SERVICE);<br />
tv1.append(&#8220;The ip address is &#8220;+Formatter.formatIpAddress(wifimanager.getConnectionInfo().getIpAddress()));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tuhin Bhatt</title>
		<link>http://www.droidnova.com/get-the-ip-address-of-your-device,304.html/comment-page-2#comment-2340</link>
		<dc:creator>Tuhin Bhatt</dc:creator>
		<pubDate>Sat, 29 Oct 2011 14:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=304#comment-2340</guid>
		<description>I get the ip address but i get the internal wifi ip (i.e. 192.168.2.5) I want the external internet ip ... How do i get it</description>
		<content:encoded><![CDATA[<p>I get the ip address but i get the internal wifi ip (i.e. 192.168.2.5) I want the external internet ip &#8230; How do i get it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.droidnova.com/get-the-ip-address-of-your-device,304.html/comment-page-2#comment-2297</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 07 Oct 2011 12:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=304#comment-2297</guid>
		<description>Hey man, the IP address is 32 bits, same as a java integer so IT IS an integer. Thanks for the first snippet, that is all I need, as Im only interested in my wifi IP address. The other snippet is good if you need the IP address of your cellular data connection.</description>
		<content:encoded><![CDATA[<p>Hey man, the IP address is 32 bits, same as a java integer so IT IS an integer. Thanks for the first snippet, that is all I need, as Im only interested in my wifi IP address. The other snippet is good if you need the IP address of your cellular data connection.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adesousa</title>
		<link>http://www.droidnova.com/get-the-ip-address-of-your-device,304.html/comment-page-2#comment-2080</link>
		<dc:creator>adesousa</dc:creator>
		<pubDate>Fri, 10 Jun 2011 17:53:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=304#comment-2080</guid>
		<description>Hi, the best way to get the IP out of wifiInfo.getIpAddress() return integer is:

String ipString = String.format( 
    &quot;%d.%d.%d.%d&quot;, 
    (ip &amp; 0xff), 
    (ip &gt;&gt; 8 &amp; 0xff),
    (ip &gt;&gt; 16 &amp; 0xff),
    (ip &gt;&gt; 24 &amp; 0xff));</description>
		<content:encoded><![CDATA[<p>Hi, the best way to get the IP out of wifiInfo.getIpAddress() return integer is:</p>
<p>String ipString = String.format(<br />
    &#8220;%d.%d.%d.%d&#8221;,<br />
    (ip &amp; 0xff),<br />
    (ip &gt;&gt; 8 &amp; 0xff),<br />
    (ip &gt;&gt; 16 &amp; 0xff),<br />
    (ip &gt;&gt; 24 &amp; 0xff));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.droidnova.com/get-the-ip-address-of-your-device,304.html/comment-page-2#comment-2048</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Tue, 31 May 2011 16:39:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=304#comment-2048</guid>
		<description>There are a lot of possible problems: Mainly the port is not free. Check your router if he supports the used port. Another possibility is that your service provider blocks the port. Try a default port like 80 and check if the router forward this port to the correct IP address. Another possibility: Is the IP address the correct one? You need to check the IP from the internet of your laptop.</description>
		<content:encoded><![CDATA[<p>There are a lot of possible problems: Mainly the port is not free. Check your router if he supports the used port. Another possibility is that your service provider blocks the port. Try a default port like 80 and check if the router forward this port to the correct IP address. Another possibility: Is the IP address the correct one? You need to check the IP from the internet of your laptop.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prasanta Pan</title>
		<link>http://www.droidnova.com/get-the-ip-address-of-your-device,304.html/comment-page-2#comment-2047</link>
		<dc:creator>Prasanta Pan</dc:creator>
		<pubDate>Tue, 31 May 2011 16:30:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=304#comment-2047</guid>
		<description>I developed a sample android client/server app,where my laptop is client and android device as server. When I running this app in my local WLAN, it&#039;s running perfectly fine,but whenever I trying to connect my android device to 3g network it giving socket timeout exception. Pls help me</description>
		<content:encoded><![CDATA[<p>I developed a sample android client/server app,where my laptop is client and android device as server. When I running this app in my local WLAN, it&#8217;s running perfectly fine,but whenever I trying to connect my android device to 3g network it giving socket timeout exception. Pls help me</p>
]]></content:encoded>
	</item>
</channel>
</rss>

