Xampp Error for Blocked Port: Troubleshooting Guide

Abstract: Resolve XAMPP port blocked errors by identifying conflicting applications like Skype or IIS and either stopping them or reconfiguring Apache and MySQL to use alternative ports.

Created: 2026-10-07 by
The XAMPP "Port Blocked" error occurs when another application, typically Skype or IIS, occupies ports 80 (Apache) or 3306 (MySQL). To resolve this, you must either stop the conflicting service or reconfigure XAMPP to use alternative ports through its control panel settings.

Identifying the Conflicting Application

Before changing any configurations, it is crucial to identify which process is holding the port hostage. The most common culprits are Microsoft Internet Information Services (IIS), Skype, or VMware services. On Windows, you can use the Command Prompt to find the Process ID (PID) associated with the blocked port. Open a command prompt as an administrator and run the following command:
netstat -ano | findstr :80
This command lists all connections using port 80. Look for the line showing LISTENING and note the number in the last column, which is the PID. You can then open Task Manager, go to the Details tab, and match the PID to the specific executable. If the process is iisexpress.exe, skype.exe, or vmware-hostd.exe, you have found your conflict. Disabling these applications temporarily allows XAMPP to start, confirming they were the cause.

Stopping Conflicting Services

If the conflicting application is a system service like IIS, stopping it permanently frees up the port for XAMPP. For IIS, open the Control Panel, navigate to Programs and Features, and click Turn Windows features on or off. Uncheck Internet Information Services and restart your computer. This is often the cleanest solution because it removes the conflict entirely without needing to change XAMPP's default configuration. For Skype, the issue usually arises because Skype binds to port 80 by default for incoming calls. Open Skype, go to Tools > Options > Advanced > Connection, and uncheck the option that uses ports 80 and 443 for incoming connections. Save the changes and restart Skype. This ensures that port 80 remains available for your local web server while keeping Skype functional for other communication methods.

Changing Apache Port Settings

If you cannot stop the conflicting application, you must configure Apache to listen on a different port. Open the XAMPP Control Panel and click the Config button next to Apache, then select httpd.conf. Locate the line that reads Listen 80 and change it to Listen 8080. Similarly, find the ServerName localhost:80 directive and update it to ServerName localhost:8080. After saving the file, you must also update the virtual host configuration. Open the httpd-vhosts.conf file from the same Config menu. Change the <VirtualHost *:80> block to <VirtualHost *:8080>. Once these changes are saved, restart the Apache module in the XAMPP Control Panel. You can now access your local site by navigating to http://localhost:8080 in your browser.

Configuring MySQL Port Alternatives

The MySQL port conflict is less common but equally disruptive. If port 3306 is blocked, locate the my.ini file in the XAMPP installation directory under the MySQL folder. Find the port=3306 setting and change it to port=3307. Save the file and restart the MySQL service from the XAMPP Control Panel. Note that some PHP frameworks or database connectors may require manual updates to their connection strings to reflect the new port number. Always test your database connectivity after making this change to ensure your applications can still communicate with the database engine.

Verifying the Fix

After applying the necessary changes, verify that the ports are no longer blocked. Run the netstat -ano | findstr :80 command again. If the output only shows connections from your own machine or is empty, the port is free. Start Apache and MySQL in the XAMPP Control Panel. If both modules turn green, the troubleshooting was successful. For more complex Windows installation errors, such as those involving MSI files, see our guide on Error 1711: Dealing with Empty MSI Files in Windows Installer. Additionally, if you encounter broader network connectivity issues during setup, refer to Windows 10 Offline Upgrade Stuck at 21% with Error 0xC1900101-0x2000D.

Frequently Asked Questions

Why does Skype block port 80?

Skype historically used port 80 to facilitate direct peer-to-peer connections for voice and video calls. While newer versions allow you to disable this feature, older installations may still bind to the port by default, preventing web servers from starting.

Can I run multiple websites on different ports?

Yes, you can configure Apache to listen on multiple ports like 8080, 8081, and so on. Each virtual host must be explicitly defined in the httpd-vhosts.conf file to map a domain name to the correct port and document root.

What if netstat shows no process using the port?

If netstat reports the port is listening but no PID is visible, a firewall rule or antivirus software might be blocking traffic rather than an application holding the port. Check your Windows Defender Firewall settings to ensure inbound rules are not interfering with local loopback traffic.

Does changing the port affect PHPMyAdmin?

Yes, PHPMyAdmin is served by Apache. If you change the Apache port to 8080, you must access PHPMyAdmin via http://localhost:8080/phpmyadmin. Ensure your browser accepts cookies and sessions on non-standard ports to avoid login loops.

Is it safe to leave port 8080 open for development?

Using port 8080 is safe for local development environments. It isolates your testing server from standard web traffic, reducing the risk of accidental exposure to external networks. However, remember that external users cannot access your local server unless you configure port forwarding on your router.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More