<div dir="ltr"><div>So, if you wanna your device connect in a instance running in your machine you need to point to your machine ip and not for localhost <br><br></div>PS: Of course both need to be in the same network<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 17, 2016 at 3:06 PM, falconea <span dir="ltr">&lt;<a href="mailto:antonio.falcone@cg.tasgroup.it" target="_blank">antonio.falcone@cg.tasgroup.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have UnifiedPush running in localhost on my machine. So I&#39;m trying to<br>
register a physical device to get notifications working.<br>
<br>
How do i set up in order to connect to UnifiedPush (JBoss server) and<br>
comunicate with GCM? Is this scenario possible?<br>
<br>
<br>
Daniel Passos wrote<br>
<span class="">&gt;&gt;From where to where?<br>
&gt;<br>
&gt; If you are running something in your device/emulator pointing to the<br>
&gt; localhost, It&#39;s trying to access (whatever you are trying to connect) IN<br>
&gt; your device.<br>
&gt;<br>
</span>&gt; On Thu, Nov 17, 2016 at 2:48 PM, falconea &amp;lt;<br>
<br>
&gt; antonio.falcone@.tasgroup<br>
<br>
&gt; &amp;gt;<br>
<span class="">&gt; wrote:<br>
&gt;<br>
&gt;&gt; I&#39;m getting this error on device:<br>
&gt;&gt;<br>
&gt;&gt; ConnectException: failed to connect to localhost/<a href="http://127.0.0.1" rel="noreferrer" target="_blank">127.0.0.1</a> (port 8080)<br>
&gt;&gt; after<br>
&gt;&gt; 30000ms: isConnected failed:ECONNREFUSED (Connection refused).<br>
&gt;&gt; Do you know why I can&#39;t connect to localhost?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context: <a href="http://aerogear-users.1116366" rel="noreferrer" target="_blank">http://aerogear-users.1116366</a>.<br>
&gt;&gt; <a href="http://n5.nabble.com/No-device-registered-cordova-push-tp955p960.html" rel="noreferrer" target="_blank">n5.nabble.com/No-device-<wbr>registered-cordova-push-<wbr>tp955p960.html</a><br>
&gt;&gt; Sent from the aerogear-users mailing list archive at Nabble.com.<br>
&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; Aerogear-users mailing list<br>
&gt;&gt;<br>
<br>
</span>&gt; Aerogear-users@.jboss<br>
<span class=""><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/aerogear-<wbr>users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; -- Passos<br>
&gt;<br>
</span>&gt; ______________________________<wbr>_________________<br>
&gt; Aerogear-users mailing list<br>
<br>
&gt; Aerogear-users@.jboss<br>
<br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/aerogear-<wbr>users</a><br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://aerogear-users.1116366.n5.nabble.com/No-device-registered-cordova-push-tp955p962.html" rel="noreferrer" target="_blank">http://aerogear-users.1116366.<wbr>n5.nabble.com/No-device-<wbr>registered-cordova-push-<wbr>tp955p962.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the aerogear-users mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/aerogear-<wbr>users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-- Passos<br></div></div>
</div>