Re: Maybe useful if you use a laptop for web dev...
- From: Chris Ridd <chrisridd@xxxxxxx>
- Date: Fri, 25 Nov 2005 14:21:05 +0000
On 25/11/05 2:13, in article BFACCC84.E1F0%bingbong@xxxxxxxxxxx, "Bonge
Boo!" <bingbong@xxxxxxxxxxx> wrote:
> On 25/11/05 12:46, in article BFACB840.12779F%chrisridd@xxxxxxx, "Chris
> Ridd" <chrisridd@xxxxxxx> wrote:
>
>>> So changing the Location doesn't work as BIND and Apache have spent the last
>>> few hours not working as they can't resolve the IP address.
>>>
>>> I never could make DNS and Apache work if I had it setup to localhost. Other
>>> machines on he network DNS queries failed.
>>
>> The trick is to make them listen to 0.0.0.0, which means all active network
>> interfaces. Programs doing that will automatically listen on new network
>> interfaces as they get addresses, and stop listening on interfaces as they
>> get disconnected. (It also includes localhost.)
>
> Didn't know that. Ta.
The output of netstat will indicate if a port is open on all interfaces or
not, using the notation "*.80" (for HTTP) in the Local Address column.
>> You still have to refer to an actual IP address if you want to contact the
>> server from another machine. Rendezvous might be a good way for other
>> clients to "find" you; Apple includes mod_bonjour for this purpose.
>
> Ok. Well that rules it out as I have to have other machines on my network
> able to test the sites. That was the problem I had.
Bonjour wouldn't help here, then?
> The DNS has to resolve to an IP address. If you set the address of
> machine.domain.whatever to 0.0.0.0 then surely when someone uses that DNS
> server to get the address it will end up looking up its own arse?
It isn't a 'real' IP address, it is just a magic value used when creating a
socket listener. It is not usable in other situations.
Cheers,
Chris
.
- Follow-Ups:
- Re: Maybe useful if you use a laptop for web dev...
- From: Bonge Boo!
- Re: Maybe useful if you use a laptop for web dev...
- References:
- Maybe useful if you use a laptop for web dev...
- From: Bonge Boo!
- Re: Maybe useful if you use a laptop for web dev...
- From: Woody
- Re: Maybe useful if you use a laptop for web dev...
- From: Bonge Boo!
- Re: Maybe useful if you use a laptop for web dev...
- From: Chris Ridd
- Re: Maybe useful if you use a laptop for web dev...
- From: Bonge Boo!
- Maybe useful if you use a laptop for web dev...
- Prev by Date: Re: Maybe useful if you use a laptop for web dev...
- Next by Date: Re: OT: what word?
- Previous by thread: Re: Maybe useful if you use a laptop for web dev...
- Next by thread: Re: Maybe useful if you use a laptop for web dev...
- Index(es):
Relevant Pages
|