Author |
Message |
Reznok Novice

Gender: Joined: Oct 25 2007 Posts: 33 Location: Hawaii Offline
|
Posted: Fri Feb 27, 2009 8:53 pm Post maybe stupid Post subject: Setting 128.0.0.1 as Localhost |
 |
|
|
|
Alright, pretty simple question I think, using UNIX, is it possible to make
128.0.0.1 = localhost
instead of 127.0.0.1? |
|
Back to top |
|
 |
Samapico No, these DO NOT look like penises, ok?

Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Sun Mar 01, 2009 1:16 am Post maybe stupid Post subject: |
 |
|
|
|
First thing to come to my mind would be:
Why the hell would you want to do that?  _________________ (Insert a bunch of dead links here) |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sun Mar 01, 2009 9:30 am Post maybe stupid Post subject: |
 |
|
|
|
The 128 class A is actually a part of the Internet. I mean you could always modify your kernel source, but that's a bad idea. There's no good reason to change the loopback address. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
|
Back to top |
|
 |
Cheese Wow Cheese is so helpful!

Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Sun Mar 01, 2009 3:37 pm Post maybe stupid Post subject: |
 |
|
|
|
although i was curious if modifying the HOSTS file in windows would be successful in this _________________ SSC Distension Owner
SSCU Trench Wars Developer |
|
Back to top |
|
 |
JoWie Server Help Squatter
Gender: Joined: Feb 25 2004 Posts: 215 Offline
|
Posted: Sun Mar 01, 2009 5:51 pm Post maybe stupid Post subject: |
 |
|
|
|
Why not use 127.0.0.2 if you want to use a different address?
The whole 127 range should loopback:
127.0.0.1 up to 127.255.255.255 (exclusive)
You can modify the IP the hostname "localhost" points to, you should also be able to define multiple localhosts, such as "something.localhost".
(The whole .localhost TLD is reserved for this purpose)
In windows you can do this by modifying "%SystemRoot%\system32\drivers\etc\hosts"
In UNIX, this would probably be "/etc/hosts" |
|
Back to top |
|
 |
Reznok Novice

Gender: Joined: Oct 25 2007 Posts: 33 Location: Hawaii Offline
|
Posted: Sat Mar 07, 2009 7:26 pm Post maybe stupid Post subject: |
 |
|
|
|
Thanks for the help.
The reason for doing it was a slight debate between me and one of my teachers. He was arguing that 128.0.0.1 could be made the localhost (though at first he was saying that IS localhost), and I really didn't believe him.
xD |
|
Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:41 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: Mon Mar 09, 2009 12:07 pm Post maybe stupid Post subject: |
 |
|
|
|
On Linux, can use ifconfig on lo to switch it to 128.0.0.1. If it doesn't route correctly, use route to add a new route so 128.0.0.0/255.0.0.0 routes to lo.
You can do it, but then you would not reach a while block of the internet, as 128.0.0.0/8 is administered by ARIN. |
|
Back to top |
|
 |
|