I try to browse localhost on my samsung device. I connected my device with eclipse via wifi. browsing http://192.1.1.190 I get a "Page not avialable. I remember, some days ago it worked
but on the emulator I am able to browse localhost.
I searched on google not able to find the correct ideas.can any one know about this.
any ideas? regards
I am currently building an Android app on the side and struggled with this problem. One solution here would be to connect your Android phone to a WiFi network which your Android Studio is also connected.
Then, when you debug your app from Android Studio, the phone should be able to access the IP address corresponding to localhost.
Yes i connect android device with wifi.but my laptop wifi ip and device ip is showing different ip numbers.so i cant able to access the localhost on android device especially.
Related
I need to send a string from emulator A in laptop L1 to emulator B in laptop L2 using intranet (NOT INTERNET). These systems will be connected to same wifi. Tried with socket programming,multicast,google near by but none of them are working in emulator (Working in real device). Installed genymotion and tried to use bridged adapter but then geny emulator is not connecting to wifi. for that also followed all the top answers provided in SO(No luck).
Looked for port forwarding also but not helping.
Hence, I need a working code to achieve this.
I have an ASP.NET/Azure application running on http://localhost:4617. I would like to debug a REST call made from an Android emulator. Related SO threads seem to indicate that you should use 10.0.2.2. I've tried several variations like http://10.0.2.2:4617, but none seem to work. Any other suggestions?
If I do ping localhost on my machine, it returns Reply from ::1: time<1ms which seems to have something to do with an ipV6 address, but I'm not sure how this is related.
If the local host is running on your desktop than that is the problem.
When you type http://10.0.2.2 it tries to connect to the Android emulator local host.
What you need to do is find your computer IP address (you can use google for it). Then once you have it type that into your android emulator browser and it should work
I was able to figure this out. If you're running an Azure server-emulator, then you need to run Visual Studio with administrator privileges. If you don't, then it will not bind correctly to the local host.
I have a simple question:
I'm installing openERP server in my computer.
and i can conncte to it by typing "http://localhost:8069" in google chrome.
Now I ask if i can connect to my openERP server from others computers and from my mobile android in my locale network.
EDIT:
so this is my situation:
I have developped an application android to connect to an openERP.then i am installed openERP (all-in-one) on my computer.the application turn good on the emulator, now i want to connect from my phone android.
but when i typing (my_ip:8069) from my application in my phone,i can't acces to my computer.
so tell me if it is possible or no,if yes how can i do it.
thanks for suggestions.
You can connect by using IP of that computer.
IP:8069 from any computer in that network.
Try disabling your firewall, it worked for me.
I'm having Samsung Galaxy S phone.
I want to debug my application, which needs internet connection.
can I debug my app with android device, sharing the PC internet connection through USB?
I can not use WiFi.
Please help me out. Thanks in advance
Getting the internet from your PC to your android device is called reverse tethering. It is tricky cause it s not a built in feature. Some solutions exist if your a linux user :
http://blog.mycila.com/2010/06/reverse-usb-tethering-with-android-22.html
Previous link is dead, found a copy there:
https://web.archive.org/web/20120320173806/http://blog.mycila.com/2010/06/reverse-usb-tethering-with-android-22.html
Don't know if it's still relevant the question is old considering Android lifetime.
If you are not, well I never find a way.
There are two current (2019) tools that do this job well:
gnirehtet
This project provides reverse tethering over adb for Android: it allows devices to use the internet connection of the computer they are plugged on. It does not require any root access (neither on the device nor on the computer). It works on GNU/Linux, Windows and Mac OS.
It's written in Rust and Java; you can choose the server component. It requires adb on the host, and at least Android 5.0. The device itself will then be managed by the program.
SimpleRT
Reverse Tethering utility for Android.
Allows you to share your computer's internet connection with your Android device via a USB cable
This one requires no adb and no rooting, but you have to build the Android APK file yourself or download a release version.
I am making a website. I'm using IIS7 on a Windows 7 Professional machine.
Is there a way I can acces that local site from HTC Desire HD (Android 2.2)?
I have tried connecting my phone through the internet via the internet passthrough option that is available on Desire HD. I can connect through my PC, but not to my local site.
I have also tried making an inbound rule in my firewall on port 80 but to no avail. (I saw someone mention this somewhere)
I would appreciate some help on this one.
/Anders
The site is currently running on your local network? If so, it's probably available at localhost/ or your local IP, correct?
If it's the only site running on that server/port combination, you can enable your firewall for that port, enable WiFi on your phone and just go to the computer's LAN IP which should bring up the site.
If this isn't specific enough, let me know in the comments.