Open telis11 opened 8 years ago
you need to forward port 5000 to your OS X machine through your firewall/router.
How would you go about port forwarding on your phone? Would you need to start with a static IP address?
same process as with computer, both of these are done through the router/firewall settings. set a static IP referencing the MAC address of the device then forward ports using those static IPs.
Okay thank you. This might be a stupid question but.. does this only work on wifi or also mobile networks
haha, no not stupid. I had to test it myself to see if it worked or not as well. Once you use your global IP in the setup phase it works on wifi and mobile networks. but seeing as it is still in early stages of development i have seen a few missed messages while making the switch to a different network.
Yeah. PieMessage was the first time working with sockets. I haven't figured out how to fail gracefully when the socket is closed. I could reconnect but honestly, Google recommends AGAINST having a socket open in the background all the time. I only wanted to use my own socket because I didn't want any messages going through any kind of Google server just for realtime notifications just for privacy/security reasons.
It would be awesome if the Java server on the Mac could use Google Cloud Messaging services (https://developers.google.com/cloud-messaging/). That should be extremely reliable and doesn't require you to keep a socket open forever. Plus, it'll work on WiFi and mobile networks. All you have to do is connect to the socket when the Android app is open and pull all new messages down.
This would require a bit more setup on the user's side, but I think messages would be a lot more reliable.
i get the error message when i try to run the OS X client connection refused