Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
When you say you are not able to access file servers,
- Do you use the DNS Name of the FileServerVM or it's Private IP Address from P2SClient (local laptop) ?
- In the working scenario, i.e. S2S, are you using DNS Name of the FileServerVM or it's Private IP ?
Because, P2S Clients by default don't get the DNS resolution for Azure hosted VMs.
- You can leverage the "Add DNS suffixes" and "Add custom DNS servers" configuration from the P2S client configuration file to forward DNS queries to Azure
- However, this requires you have a custom Azure Hosted DNS or a Private Resolver present in the VNET.
Hope this helps.
Cheers,
Kapil