Lurker News

Comments (115) 39 threads

Show all comments

Showing thread 4 of 39

helloguillecl1 reply#
This does not work if you want to use a hostname other than "localhost" (for running VirtualHost) pointing to your local machine.
devereaux1 reply#
Open a world of fun by running your local services like proxies on 127.1.2.3, 127.2.3.4, etc with the matching hostnames in /etc/hosts

You have 127.255.255.255 to play with!

Fnoord1 reply#
You mean 127/8
prodimmune2 replies#
There's nothing wrong with the previously used notation.
devereaux1 reply#
127/8 may only be understandable to those who already know that the whole 127.255.255.255 range is reserved for localhost use.

Sometimes being understandable is more important than using the most precise and shortest notation.

Continue this thread — 1 reply

Fnoord#
Yes, there is. Either you mention an IP address with a netmask such as 127.0.0.0 255.0.0.0 or you use CIDR. Mentioning a broadcast address to describe an address space is wrong because it doesn't describe how many bits (netmask and CIDR do that for IPv4).
runn1ng#
It's not, the comment is mistaken, CORS is unrelated.

But you need to use 127.0.0.1, not `localhost`