


How to correctly configure Windows Server 2019 firewall to support WebSocket communication?
Apr 19, 2025 pm 06:09 PMWindows Server 2019 Firewall and WebSocket Communication: Troubleshooting
When deploying Spring Boot applications on Windows Server 2019, the front-end and back-end WebSocket connections (for example, ws://192.168.1.2:7076/showabe/frontEndWebSocket?category=tv) often encounters a problem: Only by disabling the firewall can you connect normally, even if port 7076 has been released. This article analyzes this problem and provides solutions.
Windows firewalls are based on port number filtering, not application layer protocols, so you usually just need to release the port. However, if the connection cannot be made after releasing port 7076, the possible reasons are as follows:
Firewall rule conflict: There is a priority for firewall rules. If other rules (such as blocking all inbound connections) have priority over the release rule on port 7076, the latter will be invalid. All firewall rules need to be checked and prioritized to ensure that the 7076 port rule has the highest priority.
Network configuration file mismatch: Firewall rules vary according to network configuration files ("domain", "dedicated", "public"). When adding rules, the selected configuration file must be consistent with the server's actual network environment. When the server connects to the company's intranet, select "domain", select "dedicated" for the home network, and select "public" for the public network. Configuration file errors can cause the rule to expire.
By checking the above two points, ensuring that the firewall rules are correctly configured and have the highest priority, and that the network configuration file is consistent with the server network environment, you can solve the WebSocket communication problems caused by the Windows Server 2019 firewall.
The above is the detailed content of How to correctly configure Windows Server 2019 firewall to support WebSocket communication?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

To run programs as administrator, you can use Windows' own functions: 1. Right-click the menu to select "Run as administrator", which is suitable for temporary privilege hike scenarios; 2. Create a shortcut and check "Run as administrator" to achieve automatic privilege hike start; 3. Use the task scheduler to configure automated tasks, suitable for running programs that require permissions on a scheduled or background basis, pay attention to setting details such as path changes and permission checks.

When you encounter Windows stuck in the "GettingWindowsready, Don't turnoff your computer" interface, you should first confirm whether it is really stuck; 1. Observe whether the hard disk indicator light is flashing, 2. Check whether the fan sound has changed, 3. Wait at least 30 to 60 minutes to ensure that the system has enough time to complete the update operation.

When the Windows clipboard history is not working, you can check the following steps: 1. Confirm that the clipboard history function is enabled, the path is "Settings>System>Clipboard", and if it is not enabled, Win V will not respond; 2. Check whether the copy content type is limited, such as large images, special formats or file paths may not be saved; 3. Ensure that the system version supports it, Windows 101809 and above, and some enterprise versions or LTSC do not support it; 4. Try to restart the ClipboardUserService service or end the clipups.exe process; 5. Clear the clipboard cache or reset the settings, close and then turn on the "Clipboard History" or run the "echooff|clip" command to clean up the cache

The computer is stuck in the "Undo Changes made to the computer" interface, which is a common problem after the Windows update fails. It is usually caused by the stuck rollback process and cannot enter the system normally. 1. First of all, you should wait patiently for a long enough time, especially after restarting, it may take more than 30 minutes to complete the rollback, and observe the hard disk light to determine whether it is still running. 2. If there is no progress for a long time, you can force shut down and enter the recovery environment (WinRE) multiple times, and try to start repair or system restore. 3. After entering safe mode, you can uninstall the most recent update records through the control panel. 4. Use the command prompt to execute the bootrec command in the recovery environment to repair the boot file, or run sfc/scannow to check the system file. 5. The last method is to use the "Reset this computer" function

When encountering the "RPCserverisunavailable" problem, first confirm whether it is a local service exception or a network configuration problem. 1. Check and start the RPC service to ensure that its startup type is automatic. If it cannot be started, check the event log; 2. Check the network connection and firewall settings, test the firewall to turn off the firewall, check DNS resolution and network connectivity; 3. Run the sfc/scannow and DISM commands to repair the system files; 4. Check the group policy and domain controller status in the domain environment, and contact the IT department to assist in the processing. Gradually check it in sequence to locate and solve the problem.

The problem of slowing right-click menus is usually caused by extensions or third-party software loaded by the system. Solutions include troubleshooting plug-ins, optimizing settings, and uninstalling suspicious software. 1. Use the ShellExView tool to view and disable non-essential Shell extensions, and gradually test to find plug-ins that slow down the right-click menu; 2. For advanced users, you can lower the menu delay time to 0 or 200 milliseconds by modifying the MenuShowDelay key value in the registry to speed up the response speed, but you need to be careful to backup before operation to avoid causing system abnormalities; 3. Uninstall or update software that may cause conflicts such as old compression tools, screenshot software, antivirus software, etc., and observe whether the right-click menu returns to normal. If the problem is alleviated, it means that it is the performance problem caused by the software.

Windows time inaccurate is mainly caused by abnormal network time synchronization or aging of CMOS batteries. Solutions include: 1. Check the "Internet Time" setting to ensure that synchronization is enabled and use time.windows.com or ntp.aliyun.com; 2. Modify the registry key RealTimeIsUniversal to 0 to correctly identify the BIOS time; 3. Replace the motherboard CMOS battery to avoid resetting time after power outage; 4. Turn off "Auto-adjust daylight saving time" or confirm that the time zone settings are accurate. The troubleshooting order is recommended to set the software first and then the hardware problem.

When you encounter the "DefaultGatewayisNotAvailable" prompt, it means that the computer cannot connect to the router or does not obtain the network address correctly. 1. First, restart the router and computer, wait for the router to fully start before trying to connect; 2. Check whether the IP address is set to automatically obtain, enter the network attribute to ensure that "Automatically obtain IP address" and "Automatically obtain DNS server address" are selected; 3. Run ipconfig/release and ipconfig/renew through the command prompt to release and re-acquire the IP address, and execute the netsh command to reset the network components if necessary; 4. Check the wireless network card driver, update or reinstall the driver to ensure that it works normally.
