Android :: Setup Android Emulator To Access The LAN Of Host Machine

Jun 9, 2010

I would like to access a web service provided by one of the machines on my LAN from the android emulator.

If the service was running on the same machine where the emulator is running (called host), I could add a network redirection and access the 10.0.2.2 (host loopback interface in the emulator) with the correct port.

However it is running on another machine on the LAN. I guess I could add another redirection on the host additionally to the above one (would have to fight with iptables though ... ), but does a more simple solution exist ?

Android :: setup android emulator to access the LAN of host machine


Android :: How Host Machine Connect To Emulator Using Socket

Feb 2, 2009

How can my host machine connect to emulator using socket? In my application, I need emulator to open a server socket, then host machine connects to emulator as a client. But when host creates the socket using "10.0.2.15:xxxxx" (xxxxx is the port which emulator is listenning), it doesn't work. I think maybe the address"10.0.2.15" goes wrong. Is it a local address behind the "virtual router" and the host can't find? If so, how to find a correct IP address of emulator?

View 4 Replies View Related

General :: Can't Connect To Server On Android Emulator From Host Machine

Mar 9, 2013

I wrote simple server on android with NDK, which will work on port 8888 on android emulator, but i can't connect to it from my client on the host machine.

I added <uses-permission android:name="android.permission.INTERNET"/> in manifest.

I tried to make redirection with telnet:

telnet localhost 5554
redir add tcp:6666:8888

Here code of server:

#include <string.h>
#include <jni.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>

[code].....

View 1 Replies View Related

Android :: Emulator / Host Network Setup Issue

Oct 22, 2010

I am trying to test some udp networking between emulator and host and I have a problem with setup. I assigned address 10.0.2.14 to the host interface with 10.0.2.1 as gateway.. Can't ping 10.0.2.15 from my host, neither can i ping 10.0.2.14 from emulator. Ping from emulator to 10.0.2.2 works fine - I can capture that ICMP traffic on the loop back interface of my host, so ICMP works, but how can i create traffic from the host to emulator? Can someone point me how to make it work? Note: firewall on my host is disabled.

View 3 Replies View Related

Android :: Emulator Can't Access Host Os's Network

Mar 10, 2009

I install sdk on centos.At first it works well. But I encounter a strange issue:One day my emulator can not access it's host os's network any more.

View 2 Replies View Related

Android : Droid Emulator Access Redir Port From Other Host?

Oct 27, 2010

Have a server-socket running in an android application, which I debug using the emulator. Using the emulators console and "redir add tcp:8888:8888" I can make the service available to a program running on my development machine (as localhost:8888).

The redir port is however not available on any other network interface, meaning I can't access it through the host-ip on either the local development machine, or from a secondary machine on the network. Anyone know if its possible to make the emulator bind to all network interfaces, or have some other trick to enable other hosts on the network to connect to the emulator?

View 1 Replies View Related

Android :: Connecting Emulator In Another Machine

Aug 26, 2010

I need to test my android app 24h day and I have 3 ubuntu boxes to do it. I would like to connect my development system (MOTODEV Studio 1.3) to a Remote Device.

Well, the interface ask me about ip for machine and port to connect to.

But it doesn't. I found that the adb sever on remote seems not to listen to external ports, only internal loopback, making connections machine-machine impossible.

Could it be true? If so, why there is a section on Device to connect to Android Remote Device on MOTODEV Studio?

I've found an explanation and a workaround in this post (http://rxwen.blogspot.com/2009/11/adb-for-remote-connections.html) but it seems complicated and post's links doesn't work, so I'm confused whether there is a solution to do that.

View 1 Replies View Related

Android :: Running Emulator On A Remote Machine

Sep 8, 2009

Is there any way to connect the debugger to an emulator running on a remote machine? It's using TCP so I suppose it shouldn't be too difficult, but I can't figure out how. I would like to run the emulator on my (fast) laptop and do my coding on my (slow, but with bigger screen) desktop machine.

View 4 Replies View Related

Android : Access Dev Machine Localhost Via Usb

Mar 26, 2010

My activity needs to communicate with a java server located on my dev machine. Actually, using the emulator, I can access the server socket via the special 10.0.2.2 address. Now I'd like to test my app on my phone connected via usb, but it seems like I can't use 10.0.2.2 to access my dev machine localhost anymore. Naturally using a wifi router and a proper lan addressing does the trick, but I need to use usb connection instead. Any hint ?

1. Emulator-based scenario: standard java server running on my pc @localhost:15000 android java client running on my emulator. When the android app needs to contact the server it uses 10.0.2.2:15000 like specified here. Everything works fine.

2. Proper wifi scenario with physical connected device: standard java server running on my pc @192.168.1.10:15000. android java client running on my device with 192.168.1.11 address assigned. When the android app needs to contact the server it uses 192.168.1.10:15000 and everything works fine too.

3. Desired scenario: standard java server running on my pc @localhost:15000. android java client running on my device connected via usb cable. No network is active. When the android app needs to contact the server it tries to connect to 10.0.2.2:15000 but instead an exception is thrown (Network unreachable). It seems like special address 10.0.2.2 works only for emulator instances. I just wonder if in the adb/adt suite there's a way to access pc address from the device connected via usb cable.

View 2 Replies View Related

Android :: Network Connection From Development Machine To Emulator

Aug 20, 2009

I'm running some service on my android emulator. On android I bound it to 127.0.0.1:6100.

How can I access the service from my development machine? Do I have to redirect?

View 8 Replies View Related

Android :: Can't Connect To A Remote Host From Emulator

Oct 7, 2010

I am trying to setup a simple client/server connection, the server is running on a remote host (Normal Java) and the client is running on my computer on the emulator, it works fine when I try to connect from my machine, but I can't connect over a normal wi-fi internet connection to the remote host, what could be the problem?

View 2 Replies View Related

Android :: Access Virtual Host

Mar 20, 2010

i have set up virtual host in apache and and added relevent information in windows host file. it works fine for desktop browsers but i am not able to access this from android simulator's browser. as a example a i created a virtual host "testweb" i added this information in widows hosts file also so in desktop browser it works fine with the url http://testweb/ but in android simulator browser it displays error tht page has been moved. so plz give me solution what i shud do to work it and where i am getting wrong..

View 2 Replies View Related

Android :: USB Host / Serial Port Access

Sep 2, 2009

I am trying to figure out if there is any way by which I can access any USB device which is connected to my Android phone's USB port and read data off it? For ex. Can I connect a camera to my phone and pull pictures out of it? I know that we need a HOST-DEVICE configuration to be able to do that... have tried doing this on other devices before picking up my android phone.. thought there would be an easier way to get this done. now, when I connect my phone to a digital picture frame, I can see on the phone that it identifies the USB device it is connected to and goes into a USB mass storage mode. What I want to know is if after this, I can read data from the frame or send data to it. I want to write an app that pulls data over USB and stores it into the phone memory.

View 3 Replies View Related

General :: IPv6 Access From Host To Android Device?

Jan 1, 2012

I'm trying to connect from a host (PC or other) to a mobile cellular Android device on the Verizon/AT&T cellular network. This device uses only the 3G network and has its Wi-Fi turned off. The Android device has a listening socket and I need the remote host to be the connection initiator. As far as I know, Verizon/AT&T uses NAT traversal for mobile phones and assigns local IP addresses to them on the cellular network. This prevents me from initiating a connection to the device from a remote host.

With the usage of IPv6 assignments there shouldn't be any practical limitation (virtually unlimited) to the number of "real" IPs that can be assigned.Therefore my questions are:

1. Does the Verizon/AT&T cellular network support IPv6 and assigns IPv6 addresses to capable Android devices?

2. Does Android 2.2+ have enough support for IPv6 to implement such solution?

I am aware of other methods that can be used, such as C2DM, but it has some drawbacks (such as unknown response time) that prevent me from using it.

View 1 Replies View Related

General :: File Access From Locked Down Win XP Machine

Sep 17, 2012

The situation is this: at work the computers are heavily locked down. By that I mean that you can not download and install anything, no cd rom access and no usb access. they run win xp (some of you may be too young to have heard of this)

I have recently discovered, however, that when i plug my galaxy s3 in, the pc sees it as a digital camera, and i can access every folder on the internal sd card through windows explorer. i can then transfer any file i like to the computer This never happened on my g note, nexus s, or any other device.

Now, I can only confirm that the above works on xpower 2.5 ics custom rom. when I changed to hypergalaxy jb rom, there was no access to my phone via the pc.

how and why this works, and how i might use a hack to enable any usb device on such a locked down pc?

View 1 Replies View Related

General :: Access Ext2/3 With USB Host?

Oct 27, 2013

It seems strange to me: ext2/3/4 is the native filesystem for the device - but with device as USB host I can't access. It seems only FAT and NTFS is available.

Is there any ways to make this possible?

Background: my Sat-Receiver records to an ext2/3 partition and I would like to transfer this smoothly to my nook.

Currently my solution is to use my laptop, there I need a ext2/3 driver and transfer via MPT. This is not very comfortable and slow.

View 1 Replies View Related

Sony Ericsson Xperia X10 :: Can't Access Micro SD Card From My Linux Machine

Jul 28, 2010

I just got X10 with Android. Unlike the blackberry that I used to own I cannot access the microSD card from my linux machine. It detects it but does not open it for file transfers. I replaced the microSD card with the one I had in Blackberry and the phone accepetd it and was able to find all the media files on it. However the linux desktop (Fedora 12) still could not access it. Note this is the same SD card that I used in BB and all the files there were transferred using this linux machine before. Is it something in SE X10 that is blocking this.

View 10 Replies View Related

Android :: Setup Emulator Proxy Settings

Oct 15, 2009

I want to to use the browser inside the Android Emulator, and i want to use the proxy settings on my machine, how can i setup this.

Reading the very good manuals of android, they tell me i should start android using the following command

emulator -avd myavd -http-proxy http://168.192.1.2:3300

But still am not able to use the emulator browser. am using the IPAddress for my proxy server.

View 2 Replies View Related

Android :: Maximum Texture Units - Emulator Setup

Apr 30, 2010

this is just an issue with how the emulator is setup, but I'm not sure.

I'm (natively) calling this:

int maxt = 0;
glGetIntegerv(GL_MAX_TEXTURE_UNITS, &maxt);
__android_log_print(ANDROID_LOG_VERBOSE, "Native", "Max textures %d", maxt);

This only outputs 2... could it be possible that I'm going to be allowed only 2 textures? That seems impossible... GL_MAX_TEXTURE_SIZE reports 4096 which is more than enough. I suppose you could lay everything out on a couple of 4096x 4096 images (seems a bit crazy) but anyway... Am I just running into one of things that will be different per phone processor?

View 9 Replies View Related

Android :: Can't Access External Nework / How To Setup DNS To It

Mar 25, 2009

I can not access the external network because of DNS problem, below is my steps:

1. Setup DNS ./adb shell setprop net.dns1 xx.xx.xx.xx

I can successful access the internal network withou setting the http_proxy, such as my.mycomany.com

2. Setup proxy Setup the http_proxy environment variable on the host, and setup the dns server in Android.

Access the external network in browser, such as www.google.com. It report "Web page not available", the log of logcat say that: I/InetAddress( 187): Unknown host www.google.com, throwing UnknownHostException E/browser ( 187): onReceivedError code:-2 The URL could not be found.

Setting the http_proxy in "sqlite3 /data/data/ com.android.providers.settings/databases/settings.db" also does not work.

I guess it is the dns issue. But strange that the DNS can work for internal network, but can not work for external network.

Does anyone know how to fix this issue?

View 7 Replies View Related

Android :: Softkeyboard In Landscape Mode Does Not Pop Up In Droid Emulator / Need Setup?

Apr 30, 2010

In android emulator, I am in landscape mode and double click the text edit panel. the softkeyboard does not show up. However, it works in portrait mode.

I have check some of posts on line. They said because of hardkeyboard is available in landscape mode. If that so, how can i disable the hardkeyboard. Or is there any setting reason for this problem?

View 1 Replies View Related

Android :: Emulator And Cellular Access

Jun 18, 2010

I think the Android emulator has the capability to emulate incoming phone calls but I am wondering if there is a capability to place outgoing calls to existing cellular networks through the appropriate hardware interface. Is there any documentation of such a functionality I look into?

View 2 Replies View Related

Android :: Access Internet From Emulator

Dec 18, 2009

I have used below steps for setup the my emulator

1.C:Program Filesandroid-sdk-window ools>adb shell

2. # sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db

3. sqlite> INSERT INTO system VALUES(99,'http_proxy', '10.10.8.1:8080');

After that i closed adb shell command prompt and my emulator. and then opened my emulator but webbrowser is not opening any page(web page not available messaage) .

View 2 Replies View Related

Android :: Emulator Internet Access

Mar 13, 2010

I've been using this method to gain access to internet from my Android emulator. emulator -http-proxy <> -avd <>

It works but is that the best way to do it? It just doesn't feel right that I need to open the emulator from command line and can't just do it from Eclipse or something.

Can't seem to find an internet option on the "AVD Manager" either.

View 4 Replies View Related

Android : Way To Access Internet In Emulator

May 1, 2010

I just installed the SDK and then added the 1.6 component. Then I created an AVD. When I launch the AVD (inidentally, there is a brief error message saying could not load preferences) and try and login, it says no network connection. THe computer definitely has an Internet connection, otherwise I could not write this message.. Evberything I have read suggests you don't have to do anything special to get Internet access in the emulator. My computer's Internet connection is via LAN, which connects to a 3G router. I read something about using 10.0.2.2 in the proxy settings, but when I specify that in their SDK, the SDK hangs upon launch as it tries to find the repository, or whatever it does at startup.

View 2 Replies View Related

Android :: Network Access Is Slow In Emulator

Aug 5, 2010

I've noticed very poor performance in the emulator (1.6 and 2.1) when trying to complete the forth statement below. It will take 5+ minutes running in the emulator. Interestingly, when I debug on my phone it's not nearly as bad at maybe a minute or so, but still not great. Running the app on my phone without debugging yields great performance (seconds). URL url = new URL(CommonProperties.BASE_SERVICE_URL + "param=1"); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document dom = builder.parse(url.openConnection(). getInputStream()); is there something I can do to speed up network access while using the emulator? Has anyone noticed anything similar?

View 2 Replies View Related

Android :: Access The My Web Application Database In Emulator

Feb 11, 2010

How to access my web application database in android emulator, i want list out my database values. These are in my web application. database name employees and table: employee_data. i want to get employee_data data on android emulator.

View 1 Replies View Related

Android :: Make Emulator Access Web When PC Is On WiFi

Nov 2, 2010

I just realized that my emulator can't access the web. My computer runs on WiFi and perhaps the emulator isn't able to detect it. how to get it working? emulator isn't running on Airplane mode.

View 2 Replies View Related

Android :: Stop Internet Access On Emulator

Feb 10, 2010

Here is my problem : I am testing a database storage after retrieving data from the internet, then i would like to be able to start the emulator with internet working, and then, while it is running, stop internet access to force it using the database as a source to display data.

View 2 Replies View Related

Android :: Can I Access Emulator / Phone Market?

Sep 14, 2009

Can I access Android Market through emulator?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved