LogoAirnode Hosting
Windows VPS

How to Share Files on Your Windows VPS

What is File Sharing?

File sharing lets you access files on your Windows VPS from other computers. It's like having a network drive that you can access from anywhere.

Windows file sharing is perfect for storing files, sharing documents, or creating a backup location that you can access from any computer.


Why Use File Sharing?

  • Access files from anywhere - Connect from any computer
  • Share with others - Let multiple people access the same files
  • Backup storage - Store important files on your VPS
  • Central storage - Keep all your files in one place
  • Easy file transfer - Drag and drop files between computers

Security

Always set up proper permissions when sharing files. Don't share everything with everyone!


Setting Up File Sharing

Step 1: Create a Shared Folder

  1. Open File Explorer on your Windows VPS
  2. *Go to C:* (or wherever you want to create the share)
  3. Right-click in the empty space
  4. Select "New" > "Folder"
  5. Name it something like "SharedFiles"

Step 2: Share the Folder

  1. Right-click on your new folder
  2. Select "Properties"
  3. Click the "Sharing" tab
  4. Click "Advanced Sharing"
  5. Check "Share this folder"
  6. Click "Permissions"

Step 3: Set Permissions

  1. Click "Add" to add users
  2. Type "Everyone" and click "Check Names"
  3. Select permissions:
    • Full Control - Can read, write, delete files
    • Change - Can read and write files
    • Read - Can only read files
  4. Click "OK" to save

Connecting from Windows

Method 1: Using File Explorer

  1. Open File Explorer on your computer
  2. Click in the address bar
  3. Type: \\YOUR_VPS_IP\SharedFiles
  4. Press Enter
  5. Enter your VPS username and password when prompted

Method 2: Map as Network Drive

  1. Open File Explorer
  2. Right-click "This PC"
  3. Select "Map network drive"
  4. Choose a drive letter (like Z:)
  5. Enter the path: \\YOUR_VPS_IP\SharedFiles
  6. Check "Reconnect at sign-in"
  7. Click "Finish"

Method 3: Using Command Line

# Map a network drive
net use Z: \\YOUR_VPS_IP\SharedFiles /user:Administrator YOUR_PASSWORD

# Map with persistent connection
net use Z: \\YOUR_VPS_IP\SharedFiles /user:Administrator YOUR_PASSWORD /persistent:yes

# List mapped drives
net use

# Remove a mapped drive
net use Z: /delete

Connecting from Mac

Method 1: Using Finder

  1. Open Finder
  2. Press Cmd + K (or go to Go > Connect to Server)
  3. Enter: smb://YOUR_VPS_IP/SharedFiles
  4. Click "Connect"
  5. Enter your VPS username and password

Method 2: Using Terminal

# Mount the share
sudo mkdir /Volumes/SharedFiles
sudo mount -t smbfs //Administrator@YOUR_VPS_IP/SharedFiles /Volumes/SharedFiles

# Unmount when done
sudo umount /Volumes/SharedFiles

Connecting from Linux

Method 1: Using File Manager

  1. Open your file manager (Nautilus, Dolphin, etc.)
  2. Press Ctrl + L to go to location
  3. Enter: smb://YOUR_VPS_IP/SharedFiles
  4. Enter your VPS username and password

Method 2: Using Command Line

# Install SMB client
sudo apt install smbclient

# List shares
smbclient -L //YOUR_VPS_IP -U Administrator

# Connect to share
smbclient //YOUR_VPS_IP/SharedFiles -U Administrator

# Mount permanently
sudo mkdir /mnt/sharedfiles
sudo mount -t cifs //YOUR_VPS_IP/SharedFiles /mnt/sharedfiles -o username=Administrator,password=YOUR_PASSWORD

Advanced File Sharing Settings

Create Multiple Shares

You can create different shares for different purposes:

# Create a share for documents
net share Documents=C:\Documents /grant:Everyone,FULL

# Create a share for backups
net share Backups=C:\Backups /grant:Everyone,READ

# Create a share for specific users only
net share Private=C:\Private /grant:Administrator,FULL

Set Up User-Specific Permissions

  1. Create user accounts on your VPS
  2. Set folder permissions for specific users
  3. Remove "Everyone" from permissions
  4. Add only the users who need access

Enable File Sharing in Windows

# Enable file sharing (run as Administrator)
Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol

# Enable network discovery
netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes

# Enable file and printer sharing
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes

Troubleshooting Common Problems

Problem: "Cannot access network location"

Solutions:

  • Check if file sharing is enabled
  • Verify the IP address is correct
  • Make sure the folder is actually shared
  • Check Windows Firewall settings

Problem: "Access denied"

Solutions:

  • Check folder permissions
  • Verify username and password
  • Make sure the user has access to the share
  • Try using Administrator account

Problem: "Network path not found"

Solutions:

  • Check if the share name is correct
  • Verify the VPS is running
  • Test network connectivity with ping
  • Check if SMB is enabled

Problem: "Slow file transfer"

Solutions:

  • Check network speed
  • Close unnecessary programs
  • Use wired connection instead of WiFi
  • Optimize file sharing settings

Security Best Practices

1. Use Strong Passwords

  • At least 12 characters
  • Mix of letters, numbers, and symbols
  • Don't use common words

2. Limit Access

  • Only share what's necessary
  • Use specific user accounts
  • Don't give everyone full control

3. Enable Encryption

# Enable SMB encryption (Windows Server 2016+)
Set-SmbServerConfiguration -EncryptData $true

# Force SMB 3.0
Set-SmbServerConfiguration -SMB1Protocol $false

4. Monitor Access

  • Check event logs for file access
  • Set up alerts for unusual activity
  • Review permissions regularly

Quick Commands Reference

Windows Commands

# List all shares
net share

# Create a share
net share ShareName=C:\Path /grant:Everyone,FULL

# Delete a share
net share ShareName /delete

# View share permissions
net share ShareName

PowerShell Commands

# Create a share
New-SmbShare -Name "MyShare" -Path "C:\MyFolder" -FullAccess "Everyone"

# Remove a share
Remove-SmbShare -Name "MyShare" -Force

# Get share info
Get-SmbShare

# Set share permissions
Grant-SmbShareAccess -Name "MyShare" -AccountName "User1" -AccessRight Full

File Sharing Tips

1. Organize Your Shares

  • Create separate shares for different purposes
  • Use descriptive names for shares
  • Keep folder structure organized

2. Regular Maintenance

  • Clean up old files regularly
  • Check disk space often
  • Backup important files

3. Performance Optimization

  • Use SSD storage for better speed
  • Limit concurrent connections if needed
  • Monitor network usage

Files Are Shared!

Your Windows VPS is now a file server! You can access your files from any computer on your network or over the internet.

On this page