I have a subversion source code server on my home network, and I use dyndns and my internet router to access it from the outside. When I am using my laptop, I have to use the same URL regardless of where I am (inside or outside my home network), so I modify my hosts file every time. I am looking for a way to automate this, but I don't really know what to look for.
I guess that the proper way of doing it would be to use a DNS proxy on my LAN, or to use a better internet router that could handle connections from the LAN "bouncing back" to its own public IP. But the later is not a option because my router is provided by my cable operator, and I think the DNS proxy is overkill.
edit : sorry I forgot to say I am running Windows XP
edit2 : KCotreau - here is an explanation of why modifying the Hosts file is a solution, I just want to automate it : http://www.dyndns.com/support/kb/loopback_connections.html