Traffic from one interface to another (wlp3s0b1 > ppp0) on port 8080 and 5000
I searched a lot for a solution and found 50 similar questions. I have tried most of them but could not make this work.
In short:
Wireless interface (192.168.0.18) - internet
3G dongle interface (10.222.134.9) - private network
I can access java app (tomcat) via 127.0.0.1:8080 or 192.168.0.18:8080 and it works, but i need requests from java app go thru the 3G dongle (ppp0).
Java app scan / read other devices via port 5000 on same network like ppp0 (IP Addresses 10.222.134.2 - 10.222.134.50)
This all works if I disconnect my wifi network, but when I connect to wifi it all stops working because 192.168.0.18 can't reach devices from IP Addresses 10.222.134.2 - 10.222.134.50
|