Getting "The connection to 'localhost' failed" error when trying to browse localhost site on IIS - iis

My localhost IIS sites recently stopped working and I can't figure out why. If I try and browse to http://localhost after a while I get the error Oops! Google Chrome could not connect to localhost. If I open Fiddler and try again I get a 502 error that states System.Net.Sockets.SocketException A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 127.0.0.1:80
I've tried using netstat -a -b to see if any other applications are blocking port 80, but there doesn't appear to be anything obvious.
I've disabled proxy servers and that doesn't have any affect.
As a last resort I even tried re-installing IIS
Everything has been working fine and I can't think of any configuration changes that would've stopped localhost from working. Any ideas?

Related

Why isn't npm start not building and connecting to the dev server?

I'm trying to work my way through a React course and I am consistently running into the same issue. Every time I use npm start after I've created the app I get this error in the browser: This site can’t be reached. Localhost took too long to respond or I get the error that it refused to connect.
Here's everything I've tried to remedy the issue:
I'm not getting any errors in VScode's built in terminal or my laptop's terminal, it says everything compiled successfully.
I've tried opening the dev server on multiple different browsers: Brave, Chrome, Firefox.
I've created multiple different projects & all are having the same issue.
I've changed the port the dev server opens up on in VScode.
I've cleared my node cache.
I've uninstalled & reinstalled node & npm.
I've restarted my laptop multiple times
I've uninstalled & reinstalled VScode.
I even went so far as to completely factory reset my laptop & reinstall everything. It fixed the problem for a couple of days but now I'm back at square one dealing with the same issue.
My laptop is a 2017 MBP 13 running macOS Monterey. Any help / advice would be greatly appreciated.
curl -v "http://localhost:3000"
Trying 127.0.0.1:3000...
* Trying ::1:3000...
* connect to ::1 port 3000 failed: Connection refused
* connect to 127.0.0.1 port 3000 failed: Operation timed out
* Failed to connect to localhost port 3000 after 25918 ms: Operation timed out
* Closing connection 0
curl: (28) Failed to connect to localhost port 3000 after 25918 ms: Operation timed out
```
I finally figured out the solution. I had to turn off my VPN for the npm start command to work.

SSH Issue from GCloud

so I've an ubuntu server on Google Cloud which I lost access to SSH somehow, I don't get any error when I try to login, It just keeps loading, and nothing happens, I assume It's because of proftpd or Apache which I Installed minutes before It stopped working, from what I can see on the firewall the 22 port are open, http and http are too, I need some help, what should I do to get my access back? I can login Google Shell, but I can't log in on my VM even on GCloud Itself...
from PuTTY I get this:
Network error: Connection timed out

Failed to complete tunnel connection error with ngrok

Failed to complete tunnel connection
The connection to http://cc1e064782fc.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:80.
Make sure that a web service is running on localhost:80 and that it is a valid address.
The error encountered was: dial tcp [::1]:80: connectex: No connection could be made because the target machine actively refused it.
Hi, I was setting up ngrok and got this error, I disabled the firewall too.
Take a look at this video where I show you the error.
https://youtu.be/uP4B79w4s7c
Its kind of a message that ngrok successfully created tunnel to your pc at port 80 but there is no service running at that port in your OS, Mostly people run a web server at 80 but you can run any service at that port.
So lets assume you are running a web server in your OS on port 80 then you can access that web server from anywhere on the internet using that ngrok tunnel.

Can't open couchdb

I am a beginner to CouchDB, I need to do a school assignment with it, but now it crashed on my computer. My system is mac os, when I open the couchDB application, it keeps popping new admin windows(http://127.0.0.1:5984/_utils/#login?urlback=), but all of them are failed to connect.
When I try:
curl -X PUT http://127.0.0.1:5984
it returns
curl: (7) Failed to connect to 127.0.0.1 port 5984: Connection refused
It worked well on my computer before, seems after I tried to setup a remote node, it crashed.
What should I do to fix it?

ECONNRESET proxy error between dev server and API

When I run my development server, I get the following error.
Proxy error: Could not proxy request /graphql from localhost:3000 to http://localhost:3010.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNRESET).
It is preventing me from proxying any requests from the development server to the API.
After debugging, I realized it was not a problem with the code because my colleague and I are working from the same repo and he does not have this error. Also, sometimes if I restart my terminal the error will go away before it comes back again.
Would greatly appreciate guidance on what is the root of this issue and how I can resolve it.
What I discovered, and what seems to have solved the problem, is that I was running too many different servers on ports that were too close together. My servers were running on port 3000, 3010, and 3009. I noticed that whenever the server at 3009 was running, I would get the above error. When I changed the port for that server from 3009 to 9999, all proxy errors ceased.

Resources