Fix Localhost Port Issues and Change Default Browser Settings in Urdu | Hindi
By : Farooq Shah
Publish Date : January 23, 2021

How to fix localhost port issues? How to change default browser in Wampserver, Xampp, Laragon and Local by Flywheel? Quick solutions in Urdu – Hindi.

This is second follow up video for the Module one of Learn WordPress to Earn course started under #WPSpartans300 Refueled Mission 2021 for Freelancers working on Upwork, Fiverr, Guru etc. This tutorial answers questions you asked. Changing default browser and fixing port errors from 80 to 8080 or vice versa is very easy. Follow the tutorial step by step.

How to Change Default Browser in WampServer :

1- Open C Drive on your Computer (where you installed Wampserver)
2- Open the wamp64 folder (or wamp)
3- Open wampmanager.config file (right click on it and open with notepad)
4- Press Ctrl + F to find ‘Navigator’.
5- Find iexplorer.exe (or chrome.exe, firefox.exe) etc.
6- Change this line with the path of desired browser exe. For example:
navigator =”C:/Program Files(x86)/Google/Chrome/Application/chrome.exe”
7- Right click on Wampserver Icon. Restart all services.
8- Type http://localhost in your browser.
9- Boom. We’re done.

Port issue:
Open and edit httpd.conf (same process as mentioned above)

How to Change Default Browser in XAMPP :

1- Open XAMPP Control Panel.
2- Do not start Apache and MySQL. If services are already running, stop them.
3- Click on top right config file.
4- Click on folder icon.
5- Find Google in Program Files or Program Files x86 (64 bit vs 32 bit)
6- Click on Chrome/ Firefox/Opera etc. Click on open.
7- Boom. (You can do the same for notepad or any visual code editor etc.

Port Issue Fixed :

1- Right Click on config button next to Admin. Select Apache httpd.conf
2- Press Ctrl + F to find.
3- Type Listen 80. Find. When you see the line, change it to “Listen 8080”.
4- Now type “ServerName localhost:80”. Find. When you see the line, change it to “ServerName localhost:8080”.
5- For SSL, find Listen 443 and change it to let say 4433.
6- Find “VirtualHost _default_:443” and change it to “VirtualHost _default_:4443”.
7- Also find “ServerName localhost:443”. In some cases, it might not change. Or something like this “ServerName”. Whatever the case is, change it to “ServerName localhost:4443”.
8- In the XAMPP Control Panel, click on the main Config button (top right) again.
9- Click on Service and Port Settings.
10- Change the Main Port to 8080 and the SSL Port 4433 (or the port you chose).
11- Close config panel.
12- Stop and Start Apache. Restart services.
13- Now try clicking on admin button, and it will open.
14- Boom.

Change default browser in your Windows (as shown in the tutorial). And Laragon or Local by Flywheel will respect your choice.

Farooq Hussain Shah
Freelance Pakistan