How to connect two computers having different gateway

amolusinglinux

Honorable
Dec 13, 2012
1
0
10,510
Hello,

I am trying to connect a old desktop to a laptop using android phone tethering feature. Where desktop is using linux and connected to phone through usb tethering.

Laptop connected to phone using wifi hotspot

desktop has address
192.168.42.238
255.255.255.0
192.168.42.129

laptop has address
192.168.43.78
255.255.255.0
192.168.43.1

I can ping 192.168.43.1 from 192.168.42.238
also vice versa
I can ping 192.168.42.129 from 192.168.43.78

but not able to ping each others host ips

Please suggest.

Thanks,
amol
 

john-b691

Honorable
Sep 29, 2012
703
1
11,160
What device has the 192.168.43.1 and 192.168.42.129 addresses.

If this is the same devices as I suspect it will respond to any of its addresses on any of its ports BUT unless it is a device designed to be a router it will not actually pass and packets between the 2 interface it will only terminate the packets on itself