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

  • Thread starter Thread starter sankalpmittal
  • Start date Start date
AI Thread Summary
The issue arises from attempting to access a web application hosted on a school's local server using "localhost" or "127.0.0.1," which only works on the computer where the server is running. To view the tutorials, the necessary files must be copied from the school's computer, specifically from the directory hmsc/public/index/. The main file of interest is likely index.html, which may reference additional files and directories needed for full functionality. Simply copying the URL from the school will not work, as it is not accessible from outside that local environment. Users should check the index.html file in a text editor to identify any additional resources required for the tutorials to function properly on their home computer.
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.
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Back
Top