🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
15 messages
15 total messages Started by alex Wed, 30 Apr 2003 23:54
What are http://localhost: addresses?
#124219
Author: alex
Date: Wed, 30 Apr 2003 23:54
11 lines
1944 bytes
I recently saw some prinitng documentation referred to at the address
http://localhost:631 ........ I tried it and it works!

However, I can't understand what kind of "web address" is this. Are
these files on my computer or at my ISP?

I also wanted to explore what else may be available at this
"localhost", but http://localhost doesn't get me anywhere. 

If you understand these addresses please explain. Thanks.
Re: What are http://localhost: addresses?
#124217
Author: Doug Brown
Date: Wed, 30 Apr 2003 23:21
40 lines
3019 bytes
In article <300420031758541708%alex@no.spam>, alex <alex@no.spam> 
wrote:

> I recently saw some prinitng documentation referred to at the address
> http://localhost:631 ........ I tried it and it works!
> 
> However, I can't understand what kind of "web address" is this. Are
> these files on my computer or at my ISP?
> 
> I also wanted to explore what else may be available at this
> "localhost", but http://localhost doesn't get me anywhere. 
> 
> If you understand these addresses please explain. Thanks.

They are on your computer. It's trying to connect to a web server 
running on your computer (localhost) at port 631, which happens to be 
the CUPS printing system. So that printing system hosts a web site on 
port 631, and you're connecting to it.

The reason you can't connect to just the regular address without the 631 
is this: without a port number, it assumes you're trying to connect to 
port 80, which is the standard web server port. It's the port number it 
uses when you don't specify one, which is the standard port. You don't 
have a web server running on your computer on port 80, so you won't 
connect. I'm assuming you're using Mac OS X - you need to turn on web 
sharing in System Preferences in order to be able to just connect to 
port 80.

So, in conclusion...you're not running a regular web server on your 
machine, so it doesn't have anything to connect to. If you turn on web 
sharing, you will have something to connect to. And the 631 is for the 
printing system.

Doug

-- 
        Safari Icon Manager: http://www.ircandy.com/openmac/sim/
 Idiot's Guide to Mac Cases - moved - http://www.ircandy.com/maccases/
  If you want to reply by email, remove "pleasenospam." and ".invalid"
Re: What are http://localhost: addresses?
#124218
Author: Bert Hyman
Date: Wed, 30 Apr 2003 23:22
27 lines
2230 bytes
In news:300420031758541708%alex@no.spam alex <alex@no.spam> wrote:

> I recently saw some prinitng documentation referred to at the address
> http://localhost:631 ........ I tried it and it works!

What do you mean "it works"? That URL would only do something in the
unlikely event that you had a Web server running on your machine and, even
more unlikely, it was listening for connections on port 631. 

> However, I can't understand what kind of "web address" is this. Are
> these files on my computer or at my ISP?

If it produced anything, it came from your machine.

By convention, the name "localhost" refers to an imaginary network
interface on your machine with an address of 127.0.0.1. Connections to
that address can only be made by software running on your machine and
should be short-circuited by the network drivers on your machine and be
handled completely internally by software. 

And, what newsgroup(s) do you REALLY want this discussion on? The group
"news.software.readers" has nothing to do with what you're asking; the Mac
groups, well, that's up to you. 

-- 
Bert Hyman	St. Paul, MN	bert@visi.com
Re: What are http://localhost: addresses?
#124220
Author: SINNER
Date: Wed, 30 Apr 2003 23:40
17 lines
2235 bytes
While strolling through news.software.readers, Bert Hyman was overheard plotting:
> In news:300420031758541708%alex@no.spam alex <alex@no.spam> wrote:

>> I recently saw some prinitng documentation referred to at the address
>> http://localhost:631 ........ I tried it and it works!

> What do you mean "it works"? That URL would only do something in the
> unlikely event that you had a Web server running on your machine and, even
> more unlikely, it was listening for connections on port 631. 

sorry but that is incorrect. You dont need to have a webserver up, you
need to be running CUPS on a linux box which is the print system.

-- 
David
A diplomat is a man who can convince his wife she'd look stout in a fur coat.
Re: What are http://localhost: addresses?
#124221
Author: Ryan Graham
Date: Thu, 01 May 2003 00:27
19 lines
1827 bytes
in article 300420031758541708%alex@no.spam, alex at alex@no.spam wrote on
4/30/03 5:54 PM:

> I recently saw some prinitng documentation referred to at the address
> http://localhost:631 ........ I tried it and it works!
> 
> However, I can't understand what kind of "web address" is this. Are
> these files on my computer or at my ISP?
> 
> I also wanted to explore what else may be available at this
> "localhost", but http://localhost doesn't get me anywhere.
> 
> If you understand these addresses please explain. Thanks.

Localhost & 127.0.0.1 are loopback addresses that point back to your
machine. Assuming that your mac is not acting as a server all your inbound
ports should be closed for security reasons.

Re: What are http://localhost: addresses?
#124223
Author: matt neuburg
Date: Thu, 01 May 2003 00:32
27 lines
2794 bytes
In <300420031758541708%alex@no.spam> alex  wrote:
> I recently saw some prinitng documentation referred to at the address
> http://localhost:631 ........ I tried it and it works!
> 
> However, I can't understand what kind of "web address" is this. Are
> these files on my computer or at my ISP?

> I also wanted to explore what else may be available at this
> "localhost", but http://localhost doesn't get me anywhere. 

Because you don't have a web server turned on. http://localhost is 
trying to talk to port 80 (the default), and you are not serving on port 
80. But you *are* serving on port 631.

If you like, you can turn on a web server, and then http://localhost 
will work. To do so, turn on Personal Web Sharing in the Sharing pane of 
System Preferences.

By the way, all this started exactly ten years ago. And to think you 
only just found out... :) m.

-- 
matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt
REALbasic: The Definitive Guide! 2nd edition!
http://www.amazon.com/exec/obidos/ASIN/0596001770/somethingsbymatt
Subscribe to TidBITS. It's free and smart.
Re: What are http://localhost: addresses?
#124222
Author: Jennifer Mullen
Date: Thu, 01 May 2003 00:42
15 lines
1500 bytes
In <300420031758541708%alex@no.spam>
 alex <alex@no.spam> wrote:
> I recently saw some prinitng documentation referred to at the address
> http://localhost:631 ........ I tried it and it works!
> 
> However, I can't understand what kind of "web address" is this. Are
> these files on my computer or at my ISP?

"localhost" is a synonym for your own computer, as is 127.0.0.1.




        J.
Re: What are http://localhost: addresses?
#124226
Author: Matt
Date: Thu, 01 May 2003 02:48
19 lines
1795 bytes
In article <va36o-n7m.ln1@news.gates_of_hell.INVALID>,
 SINNER <99nesorjd@gates_of_hell.INVALID> wrote:

> While strolling through news.software.readers, Bert Hyman was overheard 
> plotting:
> > In news:300420031758541708%alex@no.spam alex <alex@no.spam> wrote:
> 
> >> I recently saw some prinitng documentation referred to at the address
> >> http://localhost:631 ........ I tried it and it works!
> 
> > What do you mean "it works"? That URL would only do something in the
> > unlikely event that you had a Web server running on your machine and, even
> > more unlikely, it was listening for connections on port 631. 
> 
> sorry but that is incorrect. You dont need to have a webserver up, you
> need to be running CUPS on a linux box which is the print system.

CUPS is actually now implemented on MacOS X as well.
Re: What are http://localhost: addresses?
#124275
Author: SINNER
Date: Thu, 01 May 2003 03:10
26 lines
2700 bytes
While strolling through news.software.readers, Matt was overheard plotting:
> In article <va36o-n7m.ln1@news.gates_of_hell.INVALID>,
>  SINNER <99nesorjd@gates_of_hell.INVALID> wrote:

>> While strolling through news.software.readers, Bert Hyman was overheard 
>> plotting:
>> > In news:300420031758541708%alex@no.spam alex <alex@no.spam> wrote:

>> >> I recently saw some prinitng documentation referred to at the address
>> >> http://localhost:631 ........ I tried it and it works!

>> > What do you mean "it works"? That URL would only do something in the
>> > unlikely event that you had a Web server running on your machine and, even
>> > more unlikely, it was listening for connections on port 631. 

>> sorry but that is incorrect. You dont need to have a webserver up, you
>> need to be running CUPS on a linux box which is the print system.

> CUPS is actually now implemented on MacOS X as well.

As well it should, its built ontop of BSD and CUPS is the common unix
printing system
-- 
David
A visit to a fresh place will bring strange work.
Re: What are http://localhost: addresses?
#124230
Author: stan
Date: Thu, 01 May 2003 03:42
10 lines
1385 bytes
In comp.sys.mac.system alex <alex@no.spam> wrote:
> I recently saw some prinitng documentation referred to at the address
> http://localhost:631 ........ I tried it and it works!

> However, I can't understand what kind of "web address" is this. Are
> these files on my computer or at my ISP?

Localhost refers to your computer.

Re: What are http://localhost: addresses?
#124232
Author: DevilsPGD
Date: Thu, 01 May 2003 04:51
21 lines
1972 bytes
In message <<300420031758541708%alex@no.spam>> alex <alex@no.spam> did
ramble:

>I recently saw some prinitng documentation referred to at the address
>http://localhost:631 ........ I tried it and it works!
>
>However, I can't understand what kind of "web address" is this. Are
>these files on my computer or at my ISP?
>
>I also wanted to explore what else may be available at this
>"localhost", but http://localhost doesn't get me anywhere. 
>
>If you understand these addresses please explain. Thanks.

This will access port 631 on localhost (Your own computer)

-- 
And sometimes I park, in handicapped spaces,
While handicapped people, make handicapped faces!
 -- Dennis Leary
Re: What are http://localhost: addresses?
#124235
Author: Alex
Date: Thu, 01 May 2003 06:06
9 lines
1909 bytes
matt neuburg <matt@tidbits.com> wrote:
 
> By the way, all this started exactly ten years ago. And to think you 
> only just found out... :) m.

I had the luxury/misfortune of doing my serious work on computers
maintained by others. So I didn't learn that side of things and have to
catch up now.
Re: What are http://localhost: addresses?
#124256
Author: Bert Hyman
Date: Thu, 01 May 2003 13:18
30 lines
2430 bytes
99nesorjd@gates_of_hell.INVALID (SINNER) wrote in
news:va36o-n7m.ln1@news.gates_of_hell.INVALID: 

> While strolling through news.software.readers, Bert Hyman was
> overheard plotting: 
>> In news:300420031758541708%alex@no.spam alex <alex@no.spam> wrote:
> 
>>> I recently saw some prinitng documentation referred to at the
>>> address http://localhost:631 ........ I tried it and it works!
> 
>> What do you mean "it works"? That URL would only do something in
>> the unlikely event that you had a Web server running on your
>> machine and, even more unlikely, it was listening for connections
>> on port 631. 
> 
> sorry but that is incorrect. You dont need to have a webserver up,
> you need to be running CUPS on a linux box which is the print
> system. 

If it implements the HTTP protocol, and you can talk to it with a
conventional Web browser, then it's a Web server, more or less. Just
because it only serves up one application doesn't really change that. 

I gather from the context of this discussion that the original poster
was talking about some specific application that runs on Macs (and
some BSD variants), so followups set. 

-- 
Bert Hyman | St. Paul, MN | bert@visi.com
Re: What are http://localhost: addresses?
#124259
Author: Dragonmaster Lou
Date: Thu, 01 May 2003 13:55
28 lines
2301 bytes
In article <300420031758541708%alex@no.spam>, alex wrote:
> I recently saw some prinitng documentation referred to at the address
> http://localhost:631 ........ I tried it and it works!
> 
> However, I can't understand what kind of "web address" is this. Are
> these files on my computer or at my ISP?

"localhost" is a network alias for your own computer.  The number after the
colon is a port number.  You can think of "localhost" (or even
"www.apple.com") as a phone number, and the port number would be like
the extension.

> I also wanted to explore what else may be available at this
> "localhost", but http://localhost doesn't get me anywhere. 

If you leave off the :<some number>, you're connecting to the standard
web server port, which is 80.  Apparently you don't have a standard web
server running on your machine.


-- 

-------------------- http://www.techhouse.org/lou ----------------------
"Dragonmaster Lou"    | "Searching for a distant star, heading off to  
lou at techhouse org  | Iscandar, leaving all we love behind, who knows
Tech House Alum       | what dangers we'll find..."                    
-----------------------------------------------------------------------
Re: What are http://localhost: addresses?
#124553
Author: Joe Davison
Date: Tue, 06 May 2003 19:48
30 lines
2684 bytes
On Thu, 1 May 2003, Dragonmaster Lou wrote:
>  In article <300420031758541708%alex@no.spam>, alex wrote:
> > I recently saw some prinitng documentation referred to at the
> > address http://localhost:631 ........ I tried it and it works!
> > 
> > However, I can't understand what kind of "web address" is this. Are
> > these files on my computer or at my ISP?
>  
>  "localhost" is a network alias for your own computer.  The number
>  after the colon is a port number.  You can think of "localhost" (or
>  even "www.apple.com") as a phone number, and the port number would be
>  like the extension.
>  
> > I also wanted to explore what else may be available at this
> > "localhost", but http://localhost doesn't get me anywhere. 
>  
>  If you leave off the :<some number>, you're connecting to the
>  standard web server port, which is 80.  Apparently you don't have a
>  standard web server running on your machine.

If you do want to explore, go to System Preferences>>Sharing and turn on
Personal Web Sharing -- that will start the Apache web server on your
machine.  Then http://localhost/ will serve up a default page that gives
you access to the Apache documentation.  You can also create a web page
and put it in your $HOME/Sites directory, and it will be accessible
there.  (On non MacOS X unix systems $HOME/Sites is named
$HOME/public_html).

joe
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads