How to block spotify peer to peer with firewall?

Nannieconner
Nannieconner Posts: 1 New Member

I'd like to block spotify peer to peer with my f-secure firewall, but of course I still want to listen to music with spotify.

From what I read on internet, it seems it is possible, but I don't know how to do it with f-secure's firewall. Could anyone help me?

Accepted Answer

  • JOnes
    JOnes Posts: 1,119 Forum Guru
    Answer ✓

    You’ll be glad to know that in F‑Secure Total version 25.6 (released around June–July 2025), the traditional, built‑in firewall interface is not part of the F‑Secure application itself. Instead, F‑Secure relies on and works alongside your operating system’s native firewall (such as Windows Defender Firewall on Windows).

    Summary — F‑Secure Total 25.6 Firewall UI

    Feature Details

    Integrated firewall UI? No — F‑Secure doesn’t include its own firewall interface
    Firewall functionality provided by Your OS (e.g., Windows Defender Firewall)
    Management of firewall rules Through your system’s firewall settings, not directly via F‑Secure

    So, if you want to block—or allow—specific application behavior (like Spotify’s P2P traffic), you’ll need to configure rules in your operating system’s firewall, not within F‑Secure itself.

    What You Can Do

    On Windows: Open the Windows Defender Firewall with Advanced Security and create rules tailored to the Spotify application—specifically blocking UDP traffic on particular ports if you want to suppress P2P behavior while permitting normal streaming.

    On macOS: Use the System Settings → Network → Firewall (or Security & Privacy → Firewall) to add custom rules for controlling Spotify’s network activity.

    Why It Works This Way

    F‑Secure’s approach is to enhance your device’s antivirus, VPN, parental controls, identity protection, and more, but not replace your built‑in firewall. This avoids redundancy and leverages your OS’s centralized network control features.

Answers

  • JOnes
    JOnes Posts: 1,119 Forum Guru

    Step-by-step: Block Spotify P2P UDP ports in Windows Defender Firewall

    1. Open Windows Defender Firewall with Advanced Security

    • Press Win + R , type wf.msc, and press Enter. (Run as Administrator)

    2. Create Outbound Rule to Block UDP Ports

    • In the left pane, click Outbound Rules.
    • Click New Rule... on the right.
    • Select Port, click Next.
    • Select UDP.
    • Choose Specific local ports.
    • Enter the ports:
      4370-4380
      (Spotify’s known P2P UDP port range)
    • Click Next.
    • Select Block the connection.
    • Click Next.
    • Select all profiles (Domain, Private, Public), or choose as appropriate.
    • Click Next.
    • Give the rule a name, e.g., Block Spotify P2P UDP Outbound.
    • Click Finish.

    3. Create Inbound Rule to Block UDP Ports

    • In the left pane, click Inbound Rules.
    • Click New Rule....
    • Select Port, click Next.
    • Select UDP.
    • Specific local ports:
      4370-4380
    • Click Next.
    • Choose Block the connection.
    • Click Next.
    • Select profiles (Domain, Private, Public).
    • Click Next.
    • Name the rule, e.g., Block Spotify P2P UDP Inbound.
    • Click Finish.

    4. Verify normal Spotify streaming is unaffected

    • Spotify streaming mostly uses TCP ports 80 and 443.
    • You don’t block TCP ports here, so streaming should continue working fine.
    • Test Spotify streaming to verify.

    Optional: Broader block if P2P persists

    • If Spotify uses wider UDP port ranges for P2P (rare), repeat the above but specify port ranges like 1024-65535 with caution—this may disrupt other UDP traffic like gaming or DNS.
    • Test thoroughly before broadening.

    Summary Table

    Rule Type

    Direction

    Protocol

    Ports

    Action

    Block

    Outbound

    UDP

    4370-4380

    Block

    Block

    Inbound

    UDP

    4370-4380

    Block