So basically I want to map the IP address 1.2.3.4 to localhost.

So that when I browse to:

1.2.3.4/somepage.html

It will fetch:

127.0.0.1/somepage.html

Does anyone know how I could go about doing this? Unfortunately the hosts file does not allow these kind of mappings.