<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=63&amp;t=23383&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2020-10-09T22:31:26+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=63&amp;t=23383&amp;mode</id>
<entry>
<author><name><![CDATA[marcin-9999]]></name></author>
<updated>2020-10-09T22:31:26+01:00</updated>
<published>2020-10-09T22:31:26+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=23383&amp;p=229357#p229357</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=23383&amp;p=229357#p229357"/>
<title type="html"><![CDATA[Re: Android skanowanie sieci LAN (problem z hostname)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=23383&amp;p=229357#p229357"><![CDATA[
No ale jak to zrobić w javie  pod android studio?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=10910">marcin-9999</a> — 9 paź 2020, o 22:31</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tfosik]]></name></author>
<updated>2020-10-09T17:48:54+01:00</updated>
<published>2020-10-09T17:48:54+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=23383&amp;p=229351#p229351</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=23383&amp;p=229351#p229351"/>
<title type="html"><![CDATA[Re: Android skanowanie sieci LAN (problem z hostname)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=23383&amp;p=229351#p229351"><![CDATA[
Witam... spróbuj z tym, dodaj bibliotekę reflection.<br />[syntax=basic4gl]Sub GetHostName(IP As String) As String<br />   Dim r As Reflector<br />   r.Target = r.RunStaticMethod(&quot;java.net.InetAddress&quot;, &quot;getByName&quot;, Array As Object(IP), _<br />      Array As String(&quot;java.lang.String&quot;))<br />   If r.Target = Null Then Return &quot;N/A&quot;<br />   Return r.RunMethod(&quot;getCanonicalHostName&quot;)<br />End Sub[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18769">tfosik</a> — 9 paź 2020, o 17:48</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[marcin-9999]]></name></author>
<updated>2020-10-09T17:15:36+01:00</updated>
<published>2020-10-09T17:15:36+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=23383&amp;p=229349#p229349</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=23383&amp;p=229349#p229349"/>
<title type="html"><![CDATA[Android skanowanie sieci LAN (problem z hostname)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=23383&amp;p=229349#p229349"><![CDATA[
Witam, mam problem z uzyskaniem nazwy hosta urządzeń w mojej sieci lan w androidzie.<br />Aplikacja którą robię skanuje sieć i wyświetla wszystkie lokalne IP które widzi router, mac adresy tez moge wyświetlić ale nie widzę nazw hosta. (getHostname poprostu zwraca IP)<br />Kod z stackowerflow niestety nie działa, tzn działa ale zwraca IP zamiast hostname.<br />A wiem ze mozna to zrobić gdyż darmowe aplikacje takie jak np NETX pokazują mi nazwy hostów.<br />Korzystam z:<br />[syntax=c]InetAddress inetAddress = InetAddress.getByName(&quot;192.168.0.59&quot;);//tu do testu na sztywno wpisane IP urządzenia które ma nazwę host<br />String name = inetAddress.getCanonicalHostName();<br />appendResultsText  ( name);[/syntax]<br />Nie jest to B4A a Android Studio, mimo to mam nadzieję że ktoś z kolegów coś podpowie<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=10910">marcin-9999</a> — 9 paź 2020, o 17:15</p><hr />
]]></content>
</entry>
</feed>