Skip to content

This guide isn’t available in ไทย yet, so we’re showing the original English version.

Windows

How to Secure a Public Wi-Fi Connection on Your Laptop

Public Wi-Fi is convenient but shared with strangers. Set the network as Public in Windows, turn off file sharing, keep the firewall on, use HTTPS and a reputable VPN, and double-check you’re on the venue’s real network before signing in.

Updated
Time
5 minutes
Difficulty
Easy
Applies to
Windows, Mac

By Published Oct 6, 2026

Quick answer

  1. 1 Confirm the exact network name with staff to avoid fake hotspots.
  2. 2 Set the network type to Public in Windows (Settings > Network & internet > Wi-Fi > properties).
  3. 3 Keep Windows Firewall on and file sharing off.
  4. 4 Use a reputable VPN and only HTTPS websites.
  5. 5 Forget the network when you leave and turn off auto-connect.
On this page
  1. Before you start
  2. Set Windows to Public mode
  3. Protect your traffic
  4. Avoid fake hotspots
  5. Troubleshooting
  6. Frequently asked questions

Before you start

  • A laptop
  • A VPN (recommended)

Method 1 Set Windows to Public mode

  1. Step 1: Open network properties

    Connect, then go to Settings > Network & internet > Wi-Fi > [network] properties.

  2. Step 2: Choose Public

    Set Network profile type to Public network (Recommended). This hides your PC from others and turns off sharing.

  3. Step 3: Check the firewall

    Open Windows Security > Firewall & network protection and make sure Public network firewall is On.

Method 2 Protect your traffic

  1. Step 1: Use a VPN

    Connect to a reputable VPN before browsing. It encrypts everything between your laptop and the VPN server.

  2. Step 2: Stick to HTTPS

    Check for the padlock and https:// in the address bar. Modern browsers can enforce it: Chrome Settings > Privacy and security > Security > Always use secure connections.

  3. Step 3: Turn on two-step verification

    Even if a password is stolen, 2-step verification protects your accounts.

Method 3 Avoid fake hotspots

  1. Step 1: Verify the name

    Ask staff for the exact network name. Attackers create look-alike networks (“Airport_Free_WiFi”) called evil twins.

  2. Step 2: Don’t install anything

    Legitimate portals never require you to download software or enter card details for “free” Wi-Fi.

  3. Step 3: Forget the network after

    Turn off Connect automatically and forget the network when you leave.

Troubleshooting

VPN won’t connect on hotel Wi-Fi

Sign in to the captive portal first, then connect the VPN. Some networks block VPN ports; try a different protocol in your VPN app.

Frequently asked questions

Is public Wi-Fi safe with HTTPS?

HTTPS protects the content of what you send, which covers most risks. A VPN adds protection for everything else and hides which sites you visit.

Is a password-protected café network safe?

Everyone with the password shares it, so treat it as public.

Summary

Set the network to Public, keep the firewall on, use a VPN and HTTPS, and confirm the network name to avoid fake hotspots. Use your phone’s hotspot for sensitive tasks.

Sources

Written by

James Chambo

Founder

James is the Founder and Senior Editor of OnlineHow with more than 20 years of experience in internet publishing.