Khanyisa Fante
Khanyisa Fante

Reputation: 326

Localhost refused to connect error VIsual Studio 2015

I'm having trouble establishing a connection to a localhost port on my local machine. It starts of with the url as http://localhost:/portnumnber and then it changes to just http://localhost. I have tried to delete the (.vs) file and it didn't work. I haven't seen any other fixes that might work any response is appreciated.

Upvotes: 0

Views: 1741

Answers (2)

Aman Aggarwal
Aman Aggarwal

Reputation: 18449

Remove the forward slash from the URL.

Use "http://localhost:port" OR "http://127.0.0.1:port" instead of "http://localhost:/portnumnber"

Upvotes: 1

BAndrei
BAndrei

Reputation: 249

Try "http://localhost:/portnumnber" is wrong... Should be "http://localhost:portnumnber" without "/" before portnumber

If this is not working, try - http://127.0.0.1:portnumnber

Upvotes: 0

Related Questions