How to map to shared folder on Google Cloud Compute Engine Windows Server

2,812 views
Skip to first unread message

Rocky Borrego

unread,
Jan 29, 2018, 12:05:38 PM1/29/18
to gce-discussion

I've set up Windows Server 2016 VM instance on Google Cloud Compute Engine. I've set up a static IP for that server.  I have also set up Public Folder sharing with the proper permissions in Windows OS.


I have created a firewall rule:

name; allow-smb
network; default
source filter; allow from any source (0.0.0.0/0)
allowed protocols and ports; udp:137; udp:138; tcp:139; tcp:445


I am able to access the shares from other local VM instances in GCE using the servers internal IP address as such:  \\<server-internal-ip>\users


But from my local computer, I am not able to access the shares via \\<server-external-ip>\users


I have disabled the Windows firewall for testing.  I have also (very temporarily) set the allowed protocols and ports; tcp:0-65535; udp:0-65535; icmp


Nothing has worked when accessing from local computer.


What I am trying to do, is map the shared network from from the GCE Instance to my local computer.


Is that possible to do?  If yes, any recommendations or suggestions to help me out?



Taher (Cloud Platform Support)

unread,
Jan 29, 2018, 10:14:11 PM1/29/18
to gce-discussion

Hi Rocky,


That is indeed a very interesting topic.


I have tried to recreate the issue you have mentioned by setting up a Windows 2016 Server VM in GCE and set that as the destination machine. I have also set up another windows machine in a separate GCP project to use it as source machine. Then I have allowed the firewall rule you have described in both the project. I was able to successfully reach destination machine from source machine and also was able to use the shares of destination machines by using your shared command below; which did not require me to change anything from windows firewall even.


\\[destination machines IP]\user


So, at this point, my suggestion would be to check to test the same from another project and thus from another source setup. By another source setup, I would mean different source network and different source machine.


Let me know if it helps.

Daniel Frazee

unread,
Apr 10, 2019, 4:13:33 PM4/10/19
to gce-discussion
Did you ever resolve this? I'm having the same problem.

Mark Babli

unread,
May 26, 2019, 11:27:17 AM5/26/19
to gce-discussion
have you got this issue resolved?


On Monday, January 29, 2018 at 11:05:38 AM UTC-6, Rocky Borrego wrote:

Mark Babli

unread,
May 26, 2019, 2:30:07 PM5/26/19
to gce-discussion
Nope. Not yet! And google seems to not give a damn!

Sent from my iPhone
--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/de46d55f-cb41-43ba-8e33-1656e902ff4f%40googlegroups.com.

Ashik M

unread,
May 27, 2019, 2:49:17 PM5/27/19
to gce-discussion
Hi Mark

Thank you for your comment. 

Generally speaking it is possible to setup a Windows VM and map the static IP range you set and access it from a bare-metal server/host OS. 

My team and I read through every single Google post related to GCE vms and we take all our posters comments to heart. This is an older post where we had a member of the Google team (Taher) already post an answer on 1/29/2018. Proof of concept was provided by Taher showing that it is possible to have 2 Windows VMs talk to one another via static external IP. Our public documentation lists how to use and mentions restrictions with static IPs which I'd also suggest to review [1].

This forum is dedicated for discussion regarding general GCE issues and  is not the best resource to troubleshoot individual GCE instances and debugging firewall/connectivity issues. If you have an issue with GCE or would like to learn more about it, I'd suggest opening a new thread while providing any related documentation related to your question that you already reviewed if your question is technical in nature.

I'd suggest bringing up your individual case on community websites like Serverfault, Stackoverflow or Superuser (even though it's mostly related to Linux) for technical solutions.

I found a related thread that you can bump up here [2]. Hope that helps and thank you for understanding.

Reply all
Reply to author
Forward
0 new messages