dotline wrote:But when I try to access my website, it gives me error," localhost refused to connect". I have tried localhost:8080/mywebsite but with the same result.
You probably installed a software like WordPress, Joomla or whatever. And when you installed it, you installed it to Port 80. The installation procedure of these tools create configuration files and/or configuration entries in databases, where the URL of the installation is stored. And MOSTLY, all of these tools do a redirect to index.php or similar everytime you call it. And this redirect now fails. Because there is no more server at Port 80.
You have to find out the configuration and to change. Or, if you dont find it, reinstall your software again with Port 8080.
Thats another hint, maybe you have blocked all outgoing request on Port 80 in your firewall or similar?
Why did you change Port 80 to 8080?