简体   繁体   中英

Android : forwarding of packets to an IP address

I have an Android device. I need to forward packets arriving at the external IP to an internal IP to which Android is connected to.

I would like to know if I can write an App to enable this forwarding.

Also, if this doesn't what is the conventional way this is done. If I should use some scripts where should I place them??

And oh, can I test this using an android emulator??

Thanks.

It is may be possible to emulate a behavior like port forwarding but not routing for non rooted devices.

Also if you want to forward traffic from the mobile.network to the wlan this is so far I know not possible. Android switches the co.netion between mobile.network and wlan. It is not possible to use both. Except some hot spot use cases.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM