Windows 10 can't find server over SMB, but ping works

6,702

Just checking; are you doing SMBv1? With windows 10 SMBv1 is disabled - so try enabling it from "Turn Windows features on or off" -> "SMB 1.0/CIFS File Sharing Support"

Share:
6,702

Related videos on Youtube

Tyll'a
Author by

Tyll'a

Updated on September 18, 2022

Comments

  • Tyll'a
    Tyll'a over 1 year

    I'm trying to set up a CentOS 7 file server using SMB, and I'm running into a bit of a snag. I can ping the server just fine from my Windows 10 machine:

    Pinging green-lightning [192.168.1.191] with 32 bytes of data:
    Reply from 192.168.1.191: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.191: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.191: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.191: bytes=32 time<1ms TTL=64
    
    Ping statistics for 192.168.1.191:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 0ms, Maximum = 0ms, Average = 0ms
    

    But when I try to access the server in File Explorer, I get this error:

    Windows can't find '\\green-lightning'.  Check the spelling and try again.
    

    I tried connecting to the IP address, but got the same error. I also tried putting my username in the public zone in the server's firewall, and restarting the SMB service.

    Using TCPing to check to see if port 445 on the server was open revealed that it was:

    Probing 192.168.1.191:445/tcp - Port is open - time=8.373ms
    Probing 192.168.1.191:445/tcp - Port is open - time=8.301ms
    Probing 192.168.1.191:445/tcp - Port is open - time=7.904ms
    Probing 192.168.1.191:445/tcp - Port is open - time=7.636ms
    
    Ping statistics for 192.168.1.191:445
         4 probes sent.
         4 successful, 0 failed.  (0.00% fail)
    Approximate trip times in milli-seconds:
         Minimum = 7.636ms, Maximum = 8.373ms, Average = 8.054ms
    

    TCP port 139 was open as well.

    I'm obviously doing something wrong here; what is it?

    • tvdo
      tvdo almost 5 years
      Is port 445 open? You can check with tcpping, netcat, or telnet.
    • Tyll'a
      Tyll'a almost 5 years
      Yes, it is. I added the results to the question.
    • tvdo
      tvdo almost 5 years
      Maybe also check TCP 139 and UDP 137/138 (you can't 'ping' UDP but you can at least check it's not blocked by your firewall rules - whether explicitly or by a default deny without any accept).
    • Tyll'a
      Tyll'a almost 5 years
      TCP 139 is open. I recently got a new router so I'm going to have to figure out how to check UDP with it.
    • Tyll'a
      Tyll'a almost 5 years
      And it looks like the UDP ports are open as well
  • Tyll'a
    Tyll'a almost 5 years
    That was something I had thought to try. Unfortunately, enabling that had no effect.
  • Tyll'a
    Tyll'a almost 5 years
    Turns out I only had part of SMBv1 installed. Installing the other parts fixed the issue.
  • J Slick
    J Slick about 2 years
    That didn't work for me. So given the comment above by @Tyll'a, I also turned on "SMB 1.0/CIFS Automatic Removal" and "SMB 1.0/CIFS Server", rebooted, and it worked! I then turned those two off again, rebooted, and it still worked!