ngrok icon indicating copy to clipboard operation
ngrok copied to clipboard

Web Failed: Listen TCP 127.0.0.1:4040

Open zwilkin opened this issue 5 years ago • 6 comments

When attempting to start a new ngrok tunnel, I am getting the following error...

web failed: listen tcp 127.0.0.1:4040: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

I have no clue what's happening, I was using it fine on Friday and the first thing today (Monday) it is not working. The ONLY thing I did over the weekend was shut my computer down.

image

zwilkin avatar Feb 04 '19 13:02 zwilkin

I had this happen today, rebooted and it worked ok.

ichivers avatar Feb 11 '19 12:02 ichivers

I had this happen today, rebooted and it worked ok.

Coming back to this for to post an answer, and as @ichivers stated, a full reboot fixed the problem for me as well.

zwilkin avatar Feb 11 '19 14:02 zwilkin

It probably means there are multiple sessions of ngrok running. On Windows open task manager, go to processes and find ngrok.exe and end task.

OlaDates avatar Jun 21 '21 20:06 OlaDates

net stop hns && net start hns

Puvipavan avatar Dec 12 '21 07:12 Puvipavan

I had this happen today, rebooted and it worked ok.

Coming back to this for to post an answer, and as @ichivers stated, a full reboot fixed the problem for me as well.

Reboot what?

Cyber-Dioxide avatar Jan 04 '22 16:01 Cyber-Dioxide

I rebooted my PC and it was fixed for me, in my case it was port 4049.

BeastGamer81 avatar May 21 '23 06:05 BeastGamer81

Thank you for opening this issue! As of April 2016, the ngrok service has permanently moved to https://ngrok.com/. To join the community and file bug reports or feature enhancements for the ngrok agent, please go to https://github.com/ngrok/ngrok.

This repository is no longer actively maintained and will be archived soon to reduce confusion with the latest ngrok versions. We thank you for the continued support of ngrok and look forward to seeing you over at ngrok.com and the ngrok Community Repo.

russorat avatar May 09 '24 19:05 russorat