• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

locaalhost vs 127.0.0.1

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
In developing a server based program I use http://127.0.0.1 to refer the object sources , I know the �localhost� does smilar thing but im not sure. Can you all expose a little more about it ?
Thank in advance
Shay
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"localhost" is basically a user friendly name for the IP address 127.0.0.1. It shouldn't matter which one you use.
Matthew Phillips
 
Shay Gaghe
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok..i thought so..but how can i changhe it or in other words to reffer it to other place in the file system?
thanks

Originally posted by Matthew Phillips:
"localhost" is basically a user friendly name for the IP address 127.0.0.1. It shouldn't matter which one you use.
Matthew Phillips


 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http:\\localhost\< filename >
 
Shay Gaghe
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Marilyn deQueiroz:
http:\\localhost\< filename >


thanks for your reply
i mean.. the "localhost" in my computer reffer to the ASP engine root directory , i want that the "localhost" will reffer to C:/images how can i set it?
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
'localhost' is like a java language keyword, only in networking.

localhost refers to the root of the webserver that is running on the machine in which you type 'localhost', most likely IIS. IIS, when it receives a request for an .asp page, will retrieve the file from the filesystem, run it through asp.dll, and then serve the results.

If you want a single word to refer to a place on your harddrive, then you need to investigate aliases. I know you can do this with Tomcat, iWS, etc... not sure of how to do the same in IIS.
 
Marilyn de Queiroz
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It can be done in IIS. However it's kinda complicated and I don't have access to my IIS box right now. You need to create a "virtual directory". It's an IIS (or whatever server you are using) thing, not a Java thing.

[This message has been edited by Marilyn deQueiroz (edited September 21, 2001).]
 
reply
    Bookmark Topic Watch Topic
  • New Topic