I'm trying to access my dev server from a mobile phone in my local network but I always get "connection refused". My app engine application works perfectly on localhost, but I can't access it from another device.
I think that the dev server is listening only on loop interface, but I don't know how to fix it on Netbeans (i'm using Google App Engine plugin).
Any ideas? I have been looking for another questions here but I can't find a fix for Netbeans.
Thanks in advance.
Related
I am writing a Java MVC web app in Eclipse using Google App Engine.
I would like to know why once I have deployed the app to Google Cloud the Google Cloud MySQL connection stops working. I am not sure how I connect to this once deployed to the cloud but is is clearly not working. I have a connection when running locally?
After a lot of reading, I made a couple of small changes like removing the port number and adding 0.0.0.0/0 into the SQL instance and the app now works really well.
From this, I am now going to close this post.
Many Thanks
Graham
I'm running into issues getting my frontend (being built in Android Studio using Java, running through an android device connected via USB) to connect to a locally hosted app-engine backend (running as a local devserver).
Errors are as follows:
Error when attempting to call an API method with:
'apiBld.setRootUrl("http://192.168.0.x:8080/_ah/api/");'
http://pastebin.com/eqHrSLfJ
Error when attempting to call an API method with:
'apiBld.setRootUrl("http://0.0.0.0:8080/_ah/api/");'
http://pastebin.com/s7PMqiyK
-
When its run with '192.168.0.x:8080' the emulated version of the code runs fine, the app connects locally and can call API methods. I've tried suggestions from various other related posts, but nothing has solved my issue. In pom.xml Ive also been sure to enable 0.0.0.0 for the port and we're not yet using authentication.
Any ideas?
It's strange that it connects in the emulator, as the avd network address to tunnel to your computer's loopback is 10.0.2.2.
Make sure the server is running by putting the URL in the browser. You may need to change the port to something else if it is already bound (ie: xbmc web server uses 8080 by default) try 8081. Don't forget the 'httpPort' directive in your build.gradle if using android studio.
I'm trying to create a TCP connection between my PC and Android smartphone to send text from the PC (Client) to the Android App (Server).
I found a tutorial which helped me with the code for the App which creates the server ( http://pastebin.com/z0xPSAvP ).
Now I'm struggling connecting my client with the server. The client is programmed with "AutoIt"
http://pastebin.com/tCW5bK9V
When I run the client the "could not connect to $socket" msg-box is displayed.
Could someone tell me what I'm doing wrong here?
Both devices are in the same Network (smartphone via WiFi and PC via LAN) and I checked for the smartphones IP in the smartphone settings.
First, try to access something like Google from your Android phone using its mobile browser. Maybe something still wrong with the network.
Then create a version of the server that could deliver simple HTTP response, visible from the Android mobile browser. Doing so with success eliminates firewalls and all client-related issues from the list of possible problems, making sure the server works and is accessible.
If it still does not work after you demonstrate connection between server and mobile browser, I would suggest to write the client in Java first using the this tutorial. You can try AutoIt and other more exotic approaches after you get anything working at all.
This link says whenever we run our app on development server in runs in Development mode. Is there any way to run app in Production mode without deploying to Google app engine.
No. But if the only thing you want is remote clients to use your server application, run your dev_appserver with the --address=IPADDR command-line argument to override its 127.0.0.1 (localhost) default. Replace IPADDR with the IP address of your development computer.
No. Well... you could deploy to JBoss using Cape Dwarf, but that may not be what you had in mind.
What effect are you trying to achieve?
I found my answer as NO. Development server has its own limitations. To check whether your app is running on Google App engine or not, use below code
if (SystemProperty.environment.value() ==
SystemProperty.Environment.Value.Production) {
// The app is running on App Engine...
}
This is taken from this link, which is mentioned in my question.
I am using MizuTech webphone when i run it using WAMP server of and other server it says cannot find java applet handler..!.
But if i connect my internet it works fine.
Can you please tell is it necessary for Java applet to use Internet ?
If not could you please tell me how I can get rid from it.
You can definitely run an applet without being connected to the internet.
... as long as all of its jars and code are available locally.
While it may be possible to load the applet from local sources, my understanding of SIP calls is that they generally go via the internet. So the main point of a 'SIP phone applet' is lost when there is no internet connection. It is a like a mobile phone with no signal, or a land-line phone when 'the storm has brought down the phone lines'.