what does "file://localhost/" mean?-VBForums
Results 1 to 9 of 9

Thread: what does "file://localhost/" mean?

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2007
    Posts
    4

    what does "file://localhost/" mean?

    When i'm using lynx, i see "file://localhost/[a bunch of other stuff]" everytime it goes to a new webpage. Is this path in regards to my machine or the telnet server where I am using lynx?

  2. #2
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    Re: what does "file://localhost/" mean?

    Localhost is your machine
    Languages: Visual Basic 05/08, C# 08
    IDE: Express Editions
    Framework: 2.0, 3.0, 3.5


    Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak

  3. #3
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: what does "file://localhost/" mean?

    It's called a loopback. "localhost" is the DNS name for http://127.0.0.1.

  4. #4

    Thread Starter
    New Member
    Join Date
    Sep 2007
    Posts
    4

    Re: what does "file://localhost/" mean?

    Ok, so when I use lynx, it says "using file://localhost/[a bunch of other stuff]/file.html", does this mean "file.html" is saved to my local machine? I don't understand how that could be. I've always thought that telnet client is simply a socket program that connect to a port, which in turn sends and receives data. When I send a keystroke, such as left arrow key, it sends that data to the telnet server (ie. freetelnet.org), which in turns, processes that data then decides what to do with it. THen it sends data back to my machine and simply displays it on my DOS window; I assumed there are no data being saved as files (at least in my machine). Is it possible that the "localhost" is actually the telnet server because I'm assuming that the telnet server is the one that's actually requesting the webpage; what i'm doing by typing "lynx http://somesite.com" is telling the telnet server which site to go to. Does this make sense?
    Last edited by jimbowaxo; Sep 12th, 2007 at 01:28 PM.

  5. #5
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: what does "file://localhost/" mean?

    It could very well be a cached page.

  6. #6

    Thread Starter
    New Member
    Join Date
    Sep 2007
    Posts
    4

    Re: what does "file://localhost/" mean?

    cached page? you mean only in memory? I would assume it is just in memory since it has to be in memory for me to actually see something in my dos window. If it's a file, that would mean that my machine is actually doing some processing on that file, which doesn't make sense since my machine doesn't have lynx program, thus would not know what to do with those files, if they are saved as files.

  7. #7
    ASP.NET Moderator mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,174

    Re: what does "file://localhost/" mean?

    When you telnet, you are connecting to a machine and using its resources. So when you issue a command such as lynx http://mendhak.com you are executing lynx on their server.

    That lynx shows you file://localhost/[a bunch of other stuff]/file.html may very well be lynx's own browsing mechanism. You request a page, it downloads it and shows it to you via localhost... where localhost in this case is the server that you are telnetting to.

  8. #8
    Fanatic Member
    Join Date
    Feb 2006
    Location
    Here, there, and everywhere
    Posts
    523

    Re: what does "file://localhost/" mean?

    I belive the file://localhost/ is just your home directory, from what I can remember.

    All the files displayed are on your computer. Lynx just allows you to browse them.

  9. #9
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,498

    Re: what does "file://localhost/" mean?

    Code:
    lynx file://localhost/
    This will show the contents of the root directory '/'.

    Code:
    lynx file://localhost
    This will show the contents of your home directory (run without the '/' on the end).
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.