question

04318419 avatar image
0 Votes"
04318419 asked TanmayJog-7570 answered

Unable to access files on server via UNC

Hello all!

I've been trying unsuccessfully to access the files of a server (running WS2019 non-GUI) on our LAN via UNC path. I have been able to access the files of other servers on the LAN, but not this one.

While troubleshooting, I disabled Windows firewall on the target server, and was then able to access that server's files! So, it's obviously a Windows Firewall issue. From what I've read, port 445 needs to be open, but it already is. Is there another port I should be looking at?

All servers on the LAN are in the same workgroup; this is not a domain environment.

Thanks,
-Adam

windows-server-2019
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SunnyQi-MSFT avatar image
0 Votes"
SunnyQi-MSFT answered SunnyQi-MSFT commented

Hi,

Thanks for posting in Q&A platform.

Before we go further, I would like to confirm the following information with you:

  1. Can we access the file from the problematic client via \\IP\files?

  2. When windows firewall was enabled, will all other devices except for the problematic one can access to the file via \\servername\fies?

  3. Is there any error message when we cannot access the file via \\servername\files? If yes, please provide the screenshot for further troubleshooting.

  4. Meanwhile, please check the Event log via Event Viewer to from both SMB client and SMB server to see if there is any related Event log was triggered when issue occurred, if yes, please provide screenshots of the Event log for further troubleshooting.

90558-event-log.jpg

Best Regards,
Sunny


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


event-log.jpg (57.9 KiB)
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the reply!

  • No. Using the IP address doesn't work either.

  • I'm not sure I understand the question. Other servers on the LAN can access files from each other using \\server\c$. However, they cannot access files from the new/problematic server nor can the new/problematic server access files from other servers.

  • Yes, there is an error message (see attachment).
    90816-nouncaccess.jpg

  • I'd say SMB log info is probably not related.

  • SMB Server > Operational last log was 4/14 ("The file and printer sharing firewall ports are currently closed. This is the default configuration for a system that is not sharing content or is on a Public network.").

  • SMB Client > Connectivity last log was also 4/14 ("Event 30810 - A TCP/IP binding was added to the specified network adapter for the SMB client.")

Thanks, again, for your help!



0 Votes 0 ·
nouncaccess.jpg (50.4 KiB)

Hi,

Thank you so much for your feedback.

While troubleshooting, I disabled Windows firewall on the target server, and was then able to access that server's files!

May I know if the target server means SMB server or SMB client? If it the SMB server, please make sure the port 445 and 139 were open.

You could check whether these ports were opened by running command telnet 127.0.0.1 445 and telnet 127.0.0.1 139 separately in a cmd window with admin privilege from SMB server side.

Best Regards,
Sunny

1 Vote 1 ·

Hello Sunny,

Sorry - I don't know about SMB server vs SMB client. What can I look at to help get you that answer? As a reminder, the target server is the non-GUI version of Server 2019.

Prior to my previous response, I did add Windows Firewall rules explicitly opening ports 445 and 135-139 for all profiles on the target server (the server I'm trying to access). But, that doesn't seem to have made any difference.

When trying the suggested commands with admin privilege (from cmd or powershell) I get a message stating 'telnet' is not recognized.

I don't know why I'm having so much trouble with accessing another server on the LAN. I've never had this issue in the past.

Thanks, again, for your help!

0 Votes 0 ·
Show more comments
TanmayJog-7570 avatar image
0 Votes"
TanmayJog-7570 answered

Are you sharing the folder which you are trying to access remotely? Right-click on the folder you wish to access and from properties, share the folder first

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.