Moorad / youtube-video-downloader

199 stars 138 forks source link

Connection denied by localhost. #18

Open Shalafi01 opened 4 years ago

Shalafi01 commented 4 years ago

I think I did all correctly but both convert to mp4 and convert to mp3 give me "Connection refused by localhost" is it for my router configuration or have I wrong something with the configuration of the server? Searching around the internet the most asked question is "can you connect to 127.0.0.1?" and I cannot, but don't know why.

Moorad commented 4 years ago

sorry for the super late response. What port is the server running on? It might be already used by another program. If you try to access localhost as a URL, typing http://localhost:4000/ in your address bar for example, will get Cannot GET / if the browser was able to talk to the server. Otherwise, your browser will display This site can’t be reached which means that the browser is not recognising localhost at all. If localhost doesn't work, try running ipconfig in cmd and copy the IPv4 Address and use that instead of localhost (Dont forget the port at the end e.g. 123.45.67.890 wouldn't work because no port was given though 123.45.67.890:4000 will work if the server was hosted on port 4000)