What could be causing the error when trying to open localhost?

  • Thread starter Thread starter sankalpmittal
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around troubleshooting an error encountered when trying to access a web address using "localhost" on a personal computer. Participants explore the implications of using "localhost" and the necessary steps to access web content that is hosted locally on another machine, specifically in a school environment.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant notes that "localhost" or "127.0.0.1" refers to the local computer, suggesting that the web pages are only accessible on the school computer where they are hosted.
  • Another participant proposes that to access the content, the user should locate the directory "hmsc/public/index/" on the school computer and copy its contents, particularly the "index.html" file.
  • There is a question about whether the web content is offline or if it can be accessed from another computer, indicating uncertainty about the nature of the files and their accessibility.
  • Participants discuss the need for additional files and directories that may be referenced by "index.html" for the content to function correctly.

Areas of Agreement / Disagreement

Participants generally agree that the content is hosted on the school computer and cannot be accessed directly from another computer using "localhost." However, there is uncertainty regarding the specific files needed and the steps required to successfully replicate the web content on a personal computer.

Contextual Notes

The discussion highlights limitations in accessing local web content across different machines and the dependency on specific files and directory structures that may not have been transferred. There is also a lack of clarity on what additional resources are necessary for the web content to function as intended.

sankalpmittal
Messages
785
Reaction score
27
Hiii there ,
In my school , there were good science tutorials running in Mozilla Firefox having web address : http://localhost/hmsc/public/index/

But when I opened it in my computer it shows the following error :
http://postimage.org/image/n4ojk5a5l/

Later when I learned that the ip address of localhost was 127.0.0.1 and port number 8080 , I again tried opening it by typing in my web address box its ip address - http://127.0.0.1 or http://localhost:8080 , but still it gave the same error.

Please help ! How to open localhost ?
Thanks in advance.
 
Last edited by a moderator:
Computer science news on Phys.org
Hi sankalpmittal! :smile:

"localhost" or "127.0.0.1" identifies the computer where you're currently on.
So the web pages you are looking for are locally on the computer you have at school.

If you want them, you should search on the computer for a subdirectory named hmsc/public/index/ and copy its contents.
It will probably contain a file named index.html.

If you copy this directory to your computer at home, you should be able to open the file index.html with firefox.
Note that it's very possible that you need more files and directories that are referred to.
 
I like Serena said:
Hi sankalpmittal! :smile:

"localhost" or "127.0.0.1" identifies the computer where you're currently on.
So the web pages you are looking for are locally on the computer you have at school.

If you want them, you should search on the computer for a subdirectory named hmsc/public/index/ and copy its contents.
It will probably contain a file named index.html.

If you copy this directory to your computer at home, you should be able to open the file index.html with firefox.
Note that it's very possible that you need more files and directories that are referred to.

Hiii "I Like Serena" ! :smile:
So that means , I can't enter the site ? Then is it just a file on the school's computer or is it a webpage there offline ? Which computer are you referring to having file index.html ? - school's computer right ?

What more files and directories do I need ? Whatever was the web address of those online tutorials in the school , I copied and now it didn't work on my computer. :frown:
 
Last edited:
sankalpmittal said:
Hiii "I Like Serena" ! :smile:
So that means , I can't enter the site ? Then is it just a file on the school's computer or is it a webpage there offline ? Which computer are you referring to having file index.html ? - school's computer right ?

What more files and directories do I need ? Whatever was the web address of those online tutorials in the school , I copied and now it didn't work on my computer. :frown:

Yes, it's likely just a file on the school's computer.
To access it from another computer you would need another address for the web page that does not use "localhost".

You say it didn't work on your computer.
But what went wrong?
Did you find the file index.html? Or one like it?

If you open the file index.html in a text editor, you can see which other files and directories it refers to.
And those files may refer to yet other files.
 

Similar threads

  • · Replies 35 ·
2
Replies
35
Views
7K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 6 ·
Replies
6
Views
5K
  • Sticky
  • · Replies 48 ·
2
Replies
48
Views
70K
  • · Replies 27 ·
Replies
27
Views
11K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 2 ·
Replies
2
Views
11K
  • · Replies 65 ·
3
Replies
65
Views
12K