I am working on a Viro Media project with three other people. Two of us have Android, and two of us have iPhones. When one of the iPhone people ran the testbed server with an ngrok link, it seems that both of the iPhone users were able to connect to the testbed. However, when I (android user) and the other android user try connecting to the same link, we get "Error connecting to package server" and "Could not connect to development server" after reloading it. The two of us (android users) decided to run it locally on our own machines to test it while both our server and our phone is connected to the same wifi, and we are both still receiving this error. I can confirm that we all have ViroReact 2.17.0. Is there some extra setup necessary in Android to get this working? Thanks.
After hours of troubleshooting, we figured out the problem. For anyone in the future running into this error, when you put the ngrok link into the app, you must delete out http:// out of the link for it to work.
Related
I am trying to write android app which sends photos to FTP server. I use Appache-commons-net library to do so. When device uses Wi-Fi everything is fine, photos are uploaded to FTP server. But my customer wants this app to be able to do the same when Wi-Fi in app is turned off and device gets net from personal computer(Windows) connected to the device via USB cable. I was able to connect device using "gnirehtet":
https://medium.com/genymobile/gnirehtet-reverse-tethering-android-2afacdbdaec7
When I use gnirehtet my app uploads only firsth photo to FTP server and hangs on getting reply code at the end of "_storeFile" function in FTPClient class of AppacheCommonsNet. When I use WiFi everything is ok, the problem is only when I use reverse tethering. I checked other reverse thetering solutions and I met the same problem.
Does anybody knows why it happens? Or what I have to do to make it work?
I have contacted with gnirehtet library author, he made a fix yesterday. Everything now workas as should, all files are copied via USB connection using ApacheCommonsNet library.
Fix is aviable on dev branch:
https://github.com/Genymobile/gnirehtet/tree/dev
I want to build an Android application using XMPP protocol for sharing real-time data. For this, first of all, I have to setup XMPP Server and best server to use is Openfire. I tried to install this server on my Windows PC, but unable to setup correctly.
This is the download link https://www.igniterealtime.org/projects/openfire/ from where I have downloaded the Openfire.exe file. After Installation it opens a browser window with URL=http://localhost:9090/ but the page shows "This site can’t be reached localhost refused to connect. Search Google for localhost 9090 ERR_CONNECTION_REFUSED"
Can anyone help me to resolve this issue or suggest me the installation procedure? Also if you have any other suggestion to use another XMPP server kindly let me now. I want to transfer data in real-time from one Android device to another.
Thank you for reading my post and replying back.
I'm trying to implement Google Cloud Messaging for my app in development. I'm following the walkthrough located in the readme a this github repository (the official Google sample project). I'm doing everything that's asked, but I'm confused as to how to test this. As far as I know I have the backend running from my computer (I can connect to the backend from localhost:8080 in chrome), but I want to test device registration with an external device (Samsung Galaxy S4). I realize that the device cannot try to connect to 10.0.2.2 because that makes the device think it's connecting to localhost on the phone itself. I tried entering my computer's IP address with both ports 8080 and 80, but the request times out before anything happens. I'm fairly certain I have the correct Server API Key and Sender ID.
Is there anything which might be wrong here? How can I connect to my computer from the phone? I'm willing to post code and/or error logs if needed. Running LinuxMint 17.2 x64.
if you are on same network , just type the internal ip address of the computer followed by port number , you can test it in the browser itself in phone
Fro GCm Testing you not require to do more thing only get your device token and get you project Auth API key from google developer console test using some tool like ,https://gcm.codeplex.com/
and you can copy your device token using edittext,textview or other thing,
I am developing an Android app using ionic. When I execute ionic serve I can see my app on my computer through http://localhost:8100
I checked my ip address using ipconfig and it's 192.168.0.3, so I tried using this IP from my device (http://192.168.0.3:8100), but I got a 404. I then tried from the very same computer I am developing from, and I got a 404 too!
Funny thing is, ionic uses two servers:
If I put http://192.168.0.3:35729 I can see live reload server both from my computer and my device. I didn't have to touch anything on my router to forward ports, and both my computer and my phone are on the same network. Note that I cannot access http://192.168.0.3:8100 neither from my phone nor from my computer (the same one I am using to develop)
Also I am serving a REST web service on 8080 from a J2EE app, and I can see it in my device. My app consumes this service, and from the computer, everything works fine. But from the device, although I can use the phone browser to access the REST server, my ionic app gives me another 404 error!
Can anyone point me in the right direction?
You will have to change the address Ionic has configured. Run:
ionic address
Then it will provide you a list of available addresses:
Multiple addresses available.
Please select which address to use by entering its number from the list below:
1) 192.168.0.107 (eth1)
2) localhost
Select your local IP from the available options. This must solve the issue you're facing.
I've migrated a web application that sends push notifications to Android apps using Google Cloud Messaging from my local workstation to a server.
Connecting to https://android.googleapis.com/gcm/send worked perfectly from my workstation. My list of allowed IPs in my Google API project includes my server's IP (and I've triple checked it), but when I connect using the exact same API key from the server, I am always getting a 401 (unauthorized) response back from Google.
I am connecting from a Linode VPS, and when I wget the same URL, I can see that it is going over IPV6. I've copied my server's IPV6 address from http://whatismyv6.com/ and also included that in the list of allowed IPs, but still I'm still only getting 401 responses.
My guess is it's related to IPV6, so I'll go ahead and try to force connecting over IPV4- but I'm curious about whether anyone else has experienced this.
Interesting. It suddenly just started working. Out of curiosity, I removed my IPV6 address, tried again and it failed. Then after adding it back, it failed a few times before started working again.
It seems that it may just take a little while for Google to accept the IPV6 address?
I guess I'll leave this question / answer though, in case anyone else experiences it. Make sure your server's IPV6 address is in the allowed list, then just go refill your coffee and try again later.