Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

run http://localhost:8000/app/ in Chrome, the browser says can not access this site #322

Closed
zhoubhin opened this issue Apr 8, 2016 · 17 comments

Comments

@zhoubhin
Copy link

zhoubhin commented Apr 8, 2016

I run npm start under branch master and run http://localhost:8000/app/ in Chrome, but the browser says
can not access this site, so anyone else know how to solve this problem? Windows 10 with Node v4.3.0

@mokaleem
Copy link

mokaleem commented Apr 8, 2016

I'm facing a similar problem. Its been two days trying to setup angular environment in Ubuntu :(. I hope you should if you do not face error/warning with npm install and npm start

@zhoubhin
Copy link
Author

zhoubhin commented Apr 8, 2016

@mkalim About a month ago when i coded under Ubuntu, i also met a problem that no any reactions when i code node -v in Ubuntu terminal although i had installed Node by using "apt-get install"...I will try to solve the problem you say,

@zhoubhin
Copy link
Author

@mkalim OK, i have solve the problem you said. First of all, you should compile the Node source code, run "npm install" and "npm start" under the /angular-phonecat , then go to http://localhost:8000/app/index.html in browser(i use firefox) , you will see Nothing here yet on the page.(git checkout -f step-0 after compile Node source code)

@mokaleem
Copy link

@zhoubhin I think the problem is still there with the way it clones.. I left that phonecat project and started following other tutorials.. npm install works fine..

@zhoubhin
Copy link
Author

@mkalim aha, i followed another project and faced similar problem…

@gkalpak
Copy link
Member

gkalpak commented Apr 15, 2016

@zhoubhin, what is the problem you are facing ? I thought you said you were able to navigate to /app/index.html and see Nothing here yet. So it should be working.

@zhoubhin
Copy link
Author

@gkalpak I mean i insert "http://localhost:8000/app" into address bar of Chrome that i can not navigate to the /app/index.html under Windows 10, but i can navigate to the /app/index.htmlunder Ubuntu successfully...

@zhoubhin
Copy link
Author

@gkalpak Chrome displays "can not access this site"(Windows 10 Node 4.3.0) while it says "Nothing here yet"(Ubuntu 14.04 Node 4.3.0)

@gkalpak
Copy link
Member

gkalpak commented Apr 18, 2016

I think might be related to outdated versions of dependencies.
Could you try the following to see if it solves the problem:

  1. In the package.json file, under devDependencies, replace "http-server": "^0.6.1", with "http-server": "^0.9.0",.
  2. Remove the node_modules/ directory.
  3. Run npm start and visit http://localhost:8000/app.

BTW, there is a PR that will update the whole tutorial, including all dependencies and configurations. (See #326.)

@zhoubhin
Copy link
Author

@gkalpak Okay, i solve this problem, thanks for your helps.

@gkalpak
Copy link
Member

gkalpak commented Apr 19, 2016

@zhoubhin, great ! I'm going to close this then, since you made it work for you and there is already a PR for fixing it for everyone.

@roshankumarlakhani
Copy link

roshankumarlakhani commented Nov 4, 2016

http://localhost:8000/ in not working
and route.php file can not find after installed laravel framework

@radhika13sharma
Copy link

hey why i am having two servers working at the same time.
i have no clue that i am working on one server local host 8000
and its showing result in local host 63342. i am trying atlot but not reaching any solution

@zhoubhin
Copy link
Author

zhoubhin commented Nov 3, 2017

@radhika13sharma Maybe you should close one of your servers first

@web-apply
Copy link

web-apply commented Nov 4, 2017

You can try visit 8000 port number on webpage command line from https://localhosts.mobi/:8000

@emile64
Copy link

emile64 commented Oct 7, 2018

I tried to install symfony, at the last step, i cannot launch server listenning on : https;//127.0.0.1:8000

@johnef
Copy link

johnef commented Jan 23, 2020

I had the same issue here using wampserver and running Laravel framework and try to access http://localhost:8000 it gives error server dial tcp4 127.0.0.1:80: connect: connection timed out but when try to connect to http://127.0.0.1:8000 it works fine

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants