Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What port? If I

    $ sudo python -m SimpleHTTPServer 80
Then type localhost into the firefox url bar, I get the directory listing


It's 4443, and actually everything appears to be working fine now. I swear this bit me every time I tried to use FF for months...


It must be a different port, otherwise localhost without a port number would work fine. Presumably 8080 or something, which is common for user apps to use since without privileges you can't open a port below 1024 normally.


But what port would firefox connect to, and how would it know?

Chrome doesnt do this either as far as I can tell.


> "Chrome autofills the port"

Sounds like they'd visited the URL in the past and had it in their history.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: