title: How to bridge/tuntap a network device from the Android emulator to the host
body: <p>Is there a way to bridge the network device of the Android emulator onto the host machine?</p>
  
  <p>I have seen <a href="http://www.anddev.org/advanced_networking_with_android-linux-t155.html" rel="nofollow noreferrer">these instructions</a>, but they are really old, the file names have changed, and my attempts to translate them to the current emulator haven't worked.  There are a few other similar examples around, but they're all from 2007-2008.  I must admit, my Linux- and especially networking-fu are not strong.  I could not get a second networking device (eth1) to show up in the emulator.</p>
  
  <p>The reason I want to have the network device appear as a device on the host machine is that I need to be able to connect to the android device from a remote computer (not the host), through rsh (which I've been able to do, as shown in my <a href="https://stackoverflow.com/questions/4033046/android-emulator-access-redir-port-from-other-host">instructions here</a>), and then use ssh from within to connect to another remote computer.  I can get in to rsh, but I can not ssh out (or ping the remote computer).  (I've been provided with an image with rshd on it, and this works fine on an actual phone, but the emulator's network devices being hidden is causing problems)</p>
  
  <p>If an eth1 could be created and bridged, that would be great.  I'm also open to bridging eth0 (but I'd want to change the IP to 172.x.x.x to be on the same subnet as the remote computers)</p>
  
  <p>Thanks.  I'll try to clarify anything if you ask.</p>