I have following network structure
PC <-- USB cable --> Android Smartphone <--> MyWiFi
IP=192.168.42.41 IP=192.168.35.115 IP=192.168.35.254
NM=255.255.255.0 NM=??? NM=255.255.255.0
DG=192.168.42.129 DG=??? DG=???
Laptop <--------------> MyWiFi
IP=192.168.35.112 IP=192.168.35.254
NM=255.255.255.0 NM=255.255.255.0
DG=192.168.35.254 DG=???
... where MyWiFi is my home WiFi network
Note: The PC can "ping" the Laptop, but the Laptop cannot "ping" the PC.
When I traceroute 192.168.35.254 from the PC, I get the following:
traceroute 192.168.35.254
traceroute to 192.168.35.254 (192.168.35.254), 30 hops max, 60 byte packets
1 192.168.42.129 (192.168.42.129) 2.163 ms 2.870 ms 3.339 ms
2 192.168.35.254 (192.168.35.254) 14.562 ms 14.915 ms 11.876 ms
Routing from the laptop is:
ip route
default via 192.168.35.254 dev wlp2s0 proto static metric 600
169.254.0.0/16 dev wlp2s0 scope link metric 1000
192.168.35.0/24 dev wlp2s0 proto kernel scope link src 192.168.35.112 metric 600
So it seems confirmed that my Android Phone stands as gateway between the PC and the WIFI router.
Both computers PC and Laptop have Ubuntu installed and Nautilus + Samba in order to share folders. The problem is that the PC cannot see the share folders of the Laptop
I have already shared folders between other computers that connect directly to MyWiFi, but I think in this case the tethering is spoiling the sharing.
How can I share folders, even though I am connecting the PC to the WiFi via tethering?