I have an app that is running on my phone that is simply displaying a web page. I'm trying to get the website name/info so that I can browse this on my desktop. I used Packet Sniffer to get the IP address but there are multiple hosts running on this IP. What's the best way for me to get the real URL/hostnames used by an Android app?
FYI: I've decoded the app but I still haven't figured out what the URL is.
What I would do is, install the app in the emulator, and then use wireshark, which can handle http traffic.
Related
I've been looking all over the place to try to figure out a way to send information from a web page that is open on my desktop browser to an Android device. I am trying to do this because the web page is like a code interpreter and I want to send the written code from the web page an Android app that I am working on. So the web page is like an IDE and the Android app is also an IDE but I'm making the web app to make typing easier and the user can just send the code to the Android app from the web page.
I could not get the web Bluetooth to see my android device Nokia 6 web Bluetooth example, web sockets do not seem like the right way to do it. Maybe there is a way to connect through local IP address?
Also there cannot be any communication with a server. it has to be from web page client directly to the android device.
I'm not too sure on how to go about this, any advice is greatly appreciated thank you for your time
I have a Xamarin Solution with an Android, iOS, and Windows mobile solution. I also have a Web Server that sits on localhost:XXXX.
I need to be able to access the URI endpoints on my local, while debugging on Mobile.
While the Web Server is running I go to fiddler, and compose http://localhost:XXXX/api/Locationsand everything is correct, I get the JSON data and life is good.
However when debugging the App on any phone, I suspect the endpoint on the phone is trying to access it's own "localhost". Is there a hosts file that I can edit on the emulators? or another solution?
If you have WiFi, change localhost to your local IP address and connect phone to that WiFi
I'm working on an Android app on a non-rooted phone. It uses the network to download some data from a server using HTTP. I would like to debug the stream of those information, so I installed Fiddler and followed some tutorials like:
http://docs.telerik.com/fiddler/configure-fiddler/tasks/ConfigureForAndroid
http://blogs.msdn.com/b/jpsanders/archive/2013/04/03/configuring-fiddler-to-be-a-proxy-for-android-emulators.aspx
The problem is that this methods work only if the data is sent and received by the Android Browser, while apps are totally ignored. How can I proceed?
Well... I managed to see my app's traffic by using an emulator, not a real phone. The guide from MSDN (second link) is the most appropriate for this task.
I have searched for a solution to this but could not find one. If this is already answered, sorry, please direct me to that.
My problem is this. I have java web application running on a local intranet (Tomcat 7, Java 6, MySQL). All desktops within the intranet are connected thru LAN and access the application using the specific server IP, something like 198.162.2.10.
Now, I want to access this thru my android mobile phone as well. The entire building is Wifi enabled and I'm able to access this web application, if I know the IP and enter it in the mobile browser. But, I would like to make this mobile access automatic and wrap it in an app which on click access this automatically, even when the IP changes. We have dynamic IPs.
You can use WebView component to display a web page within your application.
As alternative you can use HttpURLConnection co perform Http request and posts to your web application.
Regarding the dynamic IP you can configure a Local dns server or assign a static IP to the server.
Anyway the application need a fixed address to connect to the web application, unless you want to insert the address manually each time.
Hello I am making an Google Appengine hosted HTML5 webapp. It is going swell so far except that every time i want to test the webpage I have to upload it to the server so that my phone can go and get the url.
Is there any way to test a local server on my win machine on my webview?? I am really getting sick of having to upload it to appengine, seeing somethin minor wrong in the webview rendering and having to reupload it again.
Thanks
Ruben
If you're on the emulator or on the same network, your win machine is the server.
You just need to get its IP by going to command prompt and writing the command ipconfig
And use this IP on your android application
For a more detailed way to get the ip :
http://www.youtube.com/watch?v=49tYGwBhP3Y
By default, the local dev server only allows connections from the same machine. If you want to use the Android emulator, that's fine (but it sounds like you don't want to use the emulator from the comments).
You should use the --host parameter (in recent versions of the SDK) to bind your server to an address that will be visible on your network, e.g.:
dev_appserver.py --host=0.0.0.0 .
Once you've done this, you can point your web view to the address of your machine on the LAN.