Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Accessing a local DSL machine by its external IP' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Accessing a local DSL machine by its external IP
Authored by: vlipper on Apr 14, '04 05:33:18PM
Hello, Sorry for the very late reaction to all the comments above, but I had to lookup my own hint to get my setup working again. Let me try to explain why I use this setup.
My 'problem' is that if I point my browser to let's say 1.2.3.4, my ADSL IP number from my local machine, this will result in a timeout. Why? Probably because my browser will send a request to 1.2.3.4 through my ADSL modem, that tries to connect to 1.2.3.4 However this is not possible, since it has 1.2.3.4 as its external IP adress. (The modem has IP addresses: one being the gateway addres my local machine uses (10.0.0.138) and the address I got from my provider (1.2.3.4)).
When I duplicate my Ethernet connection and put 127.0.0.1 as the gateway for 1.2.3.4, all requests I make for 1.2.3.4 will reroute to 127.0.0.1 or localhost! This means that pointing my browser to 1.2.3.4 yields the same result as pointing my browser to 127.0.0.1 or localhost!

So why go all though all this trouble? Suppose I write some HTML with an URL in there that actually points to 1.2.3.4, I can now test this page without having to login to upload to HTML to the hosting server, and logging in to an external server just to test the page. Quite handy.
I think this can also be achieved by messing with routed, or whatever BSD commandline tool/config file. I just don't know.
Don't exactly know about the netmask settings. I doubt if it ever gets that far. Both 255.255.0.0 and 255.255.255.255 seem to work.

Hope this clears some fog. It is though to describe stuff you only need once in a while for testing, and is not mission critical, which is another way of saying that I don't really care, as long as it works.

---
Communication is coming on strong - j. hendrix

[ Reply to This | # ]