I have a question regarding the config of wireless PC - both Linux and Windows. My home network looks a little like this:
Internet | Cable modem | Wired Router | \\ \\ \\-- Webserver for mydomain.tld | \\ \\----- Wired PC | \\-------- Wired PC | Wireless Router z z z Wireless Windows PC Wireless Linux PC
The webserver (a Linux box) runs a website - mydomain.tld - that is accessible from outside (via dynamic DNS) and internally (via static
192.168. entries in the host files). This works fine for the wired PCs- as they never leave the house - but it's not the ideal solution for the Wireless PCs.
The problem with the Wireless PCs is that when they are attached to a foreign wireless network the webserver for mydomain.tld is no longer accessible at the 192.162 address configured in the host file. It's then necessary to comment out the entry in the host file before mydomain.tld can be accessed via the internet.
So what's the right solution for this? How should I configure wireless Windows and Linux PCs to use a different address for mydomain.tld when connected on different wireless networks.
All/any advice appreciated.