---
title: "How to Close a Port on LocalSend - CloudBlast"
description: "How to Close a Port on LocalSend"
url: "https://cloudblast.io/fr/article/How-to-Close-a-Port-on-LocalSend"
language: "fr-FR"
---

BLOG

# How to Close a Port on LocalSend

5€ DE SOLDE OFFERT à l'inscription

Inscrivez-vous sur CloudBlast et recevez 5€ de crédit cloud pour déployer vos VPS

[Recevoir 5€ gratuits](https://console.cloudblast.io/auth/login?ref=2)

-   [Retour](https://cloudblast.io/fr)
-   [Tous les articles](https://cloudblast.io/fr/blog)

2024-09-29

### How to Close a Port on LocalSend

tutorials

**Introduction**
LocalSend is a versatile application that allows users to share files across devices on the same local network. While it offers seamless connectivity, there may be instances where you need to close a port for security reasons or to troubleshoot network issues. This guide provides a step-by-step approach to closing a port on LocalSend, ensuring your network remains secure without compromising functionality.

**Understanding Port Usage in LocalSend**
LocalSend typically uses a specific port to facilitate communication between devices. By default, it may use port 53317, as indicated in various discussions and documentation. This port must be open for LocalSend to function correctly, but there are scenarios where you might want to close it, such as when the application is not in use or if you encounter security concerns.

**Steps to Close a Port on LocalSend**
**1\. Identify the Port**
First, confirm the port number that LocalSend is using. This can usually be found in the application's settings or documentation. For LocalSend, the default port is often 53317\[\[5\]\].

**2\. Use Firewall Settings**
The most straightforward way to close a port is through your system's firewall settings. Here’s how you can do it on different operating systems:

**On Linux:**
If you are using a firewall like \`ufw\` (Uncomplicated Firewall), you can close the port with the following command:

> sudo ufw deny 53317

For systems using \`firewalld\`, you can use:

> sudo firewall-cmd --zone=public --remove-port=53317/tcp --permanent
> sudo firewall-cmd --reload

**On Windows:**
1\. Open the Windows Defender Firewall with Advanced Security.
2\. Click on "Inbound Rules" and then "New Rule".
3\. Select "Port" and click "Next".
4\. Choose "TCP" and specify the port number (53317).
5\. Select "Block the connection" and complete the wizard.

**On macOS:**
macOS users can use the \`pfctl\` command to manage firewall rules. However, this requires more advanced configuration and is typically done through the system preferences or third-party firewall applications.

**3\. Verify the Port is Closed**
After updating your firewall settings, verify that the port is closed. You can use tools like \`netstat\` or \`nmap\` to check the status of the port.

For example, on Linux, you can use:

> sudo netstat -tuln | grep 53317

If the port is closed, it should not appear in the list of active connections.

**Conclusion**
Closing a port on LocalSend involves identifying the port number and updating your firewall settings to block it. By following these steps, you can ensure that your network remains secure while maintaining control over your application's connectivity. Whether for security reasons or troubleshooting, managing port access is a crucial aspect of network administration.

Partager

## Continuer la lecture

[2026-07-25 How to Install and Set Up Mailcow on Ubuntu and Debian VPS tutorials](https://cloudblast.io/article/how-to-install-and-setup-mailcow-on-ubuntu-and-debian-vps)

[2026-07-25 How to Install Chatwoot on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-chatwoot-on-ubuntu-and-debian-server)

[2026-07-25 How to Install Mattermost on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-mattermost-on-ubuntu-and-debian-server)

[2026-07-25 How to Install RustDesk on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-rustdesk-on-ubuntu-and-debian-server)
