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 MyWiF
i 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?
MyWiFi
? Can it ping 1.1.1.1? Please [edit] your question to provide this valuable info and then leave a comment @Fabby 0:-) – Fabby Jul 18 '19 at 22:14ping
worked properly. – loved.by.Jesus Jul 19 '19 at 13:46PC <-- USB cable --> Android Smartphone <--> MyWiFi
line: all of their IP addresses and Default gateways because you don't have a samba issue but a networking issue. also add the full samba config to https://paste.ubuntu.com and provide a link to that in your question too. so make your question easy to understand from a full networking perspective... ;-) – Fabby Jul 19 '19 at 14:11sftp
orsshfs
? But may be I loose the power of being in a local network. If I use an application that goes through the internet, then the data transmission is much slower. ;) I want to connect in Local Network – loved.by.Jesus Jul 19 '19 at 21:36/etc/samba/smb.conf
. Please see my revision to your question and please fill in the blanks I.E.???
as you're having a network problem, not a samba problem. – Fabby Jul 19 '19 at 21:58???
first. @loved.by.Jesus I need all the information to make it work as you wish. With the information I currently have, the only thing I can answer now is: Put samba on the PC instead of the laptop... (which is probably not what you want.) – Fabby Jul 20 '19 at 20:17