Stories
Slash Boxes
Comments

Dev.SN ♥ developers

posted by LaminatorX on Friday March 28 2014, @11:05AM   Printer-friendly
from the man-ip dept.

mlosh writes:

I've got a Samsung Galaxy Note 10.1 (2014) and would like to connect to a private network through WiFi for development work, but still have access to the general Internet through the 3G/4G cellular radio for other apps. So far, it does not seem possible. Connecting to WiFi seems to route all data through WiFi to the private network, cutting off the Internet. Is there a way to have both radios working and routing packets separately on this Galaxy Note, or any other Android device, short of customizing the network stack software?

 
This discussion has been archived. No new comments can be posted.
Display Options Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 1) by mlosh on Friday March 28 2014, @01:35PM

    by mlosh (3364) on Friday March 28 2014, @01:35PM (#22604)

    Yes, you have the basic scenario right. Configuring this metric parameter looks worth exploring. Thanks for the big hint!

    Do you or any other readers know how to configure this in Android 4.1? I don't need to access any other nodes beyond a simple subnet in WiFi, so the extra routing table entries should not be needed. I'd like to configure the gateway address of each network independently too.

  • (Score: 1, Informative) by Anonymous Coward on Friday March 28 2014, @03:26PM

    by Anonymous Coward on Friday March 28 2014, @03:26PM (#22642)

    Skip the metric stuff, that only matters for complicated routing and this ain't complicated. You can ignore that part of the AC's post and just stick to the basics:

    1) Set the default route to point to the gateway to the cell network.
    2) Add a specific route for the development network to the gateway on the wifi network (like the AC's example, just leave off the metric option, or leave it on, it isn't really do anything)

    • (Score: 1) by mlosh on Friday March 28 2014, @05:21PM

      by mlosh (3364) on Friday March 28 2014, @05:21PM (#22712)

      Yes, thanks, this is probably what I want. I need to set up the route tables to have different gateways for each network device (like I have done with traditional Linux systems before).

      The GUI user-level settings app in Android does not let you do this, but it seems that if I install and use the Android Debugging Bridge (ADB) I can use a PC to open a shell and issue the route table change commands... hopefully without rooting and can be made permanent through a startup script or something.