enter image description here

I have an ethernet module (a sensor but communicating via ethernet: TCP/IP) connecting to my laptop (x1 carbon). An android device (Pixel XL) in USB tethering mode connecting to my Laptop.

IP of ethernet module: (set by me) -> interface in Laptop: (static) (set by me)

IP of a Pixel: (default of the phone) -> interface in Laptop: (static) (set by me)

Now I want to forward packet from Pixel to the ethernet module and vice versa (ping at first). How can I do it? Please instruct in detail because I do not have the network background.

Thanks in advance.


1 Answer 1


You need to enable routing on your laptop. If it is Linux, you do not need any other software. Try in a root shell:

echo 1 > /proc/sys/net/ipv4/ip_forward

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.