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

PS: Of course both need to be in the same network

On Thu, Nov 17, 2016 at 3:06 PM, falconea <antonio.falcone@cg.tasgroup.it> wrote:
I have UnifiedPush running in localhost on my machine. So I'm trying to
register a physical device to get notifications working.

How do i set up in order to connect to UnifiedPush (JBoss server) and
comunicate with GCM? Is this scenario possible?


Daniel Passos wrote
>>From where to where?
>
> If you are running something in your device/emulator pointing to the
> localhost, It's trying to access (whatever you are trying to connect) IN
> your device.
>
> On Thu, Nov 17, 2016 at 2:48 PM, falconea &lt;

> antonio.falcone@.tasgroup

> &gt;
> wrote:
>
>> I'm getting this error on device:
>>
>> ConnectException: failed to connect to localhost/127.0.0.1 (port 8080)
>> after
>> 30000ms: isConnected failed:ECONNREFUSED (Connection refused).
>> Do you know why I can't connect to localhost?
>>
>>
>>
>> --
>> View this message in context: http://aerogear-users.1116366.
>> n5.nabble.com/No-device-registered-cordova-push-tp955p960.html
>> Sent from the aerogear-users mailing list archive at Nabble.com.
>> _______________________________________________
>> Aerogear-users mailing list
>>

> Aerogear-users@.jboss

>> https://lists.jboss.org/mailman/listinfo/aerogear-users
>>
>
>
>
> --
> -- Passos
>
> _______________________________________________
> Aerogear-users mailing list

> Aerogear-users@.jboss

> https://lists.jboss.org/mailman/listinfo/aerogear-users





--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/No-device-registered-cordova-push-tp955p962.html
Sent from the aerogear-users mailing list archive at Nabble.com.
_______________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users



--
-- Passos