Since this wasn’t the Oops! could not connect to localhost page, I deduced that another app is running on port 8888. I didn’t have any clue what it could be or how to stop it so I Googled it and here’s the resolution:
- Locate the Command Prompt shortcut on your Windows PC (default is C:\Users\YourName\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools)
- Right-Click on the shortcut -> Run As Administrator -> Select OK in the prompt
- Type netstat -> hit Enter
- You should be shown all active connection including port numbers. See if the port is being used
- If the port is being used type netstat -bano -> hit Enter
- A very detailed list of the active connections will now be shown including that applications using them.
- Note that localhost:8888 will be listed as 127.0.0.1:8888, and then find the application that is using that port.
- Now open the Task Manager (ctrl + alt + delete) -> locate the application -> select End Task
- Open a web browser -> enter http://localhost:8888 as the web address -> you should see the default Oops! could not connect to localhost page
- Try to run your local webpage server again
Note: If you prefer a GUI, which I certainly do, then download the following instead of using the Command Prompt: https://technet.microsoft.com/en-us/sysinternals/bb897437.aspx