Mercury runs on a machine on my local network with a fixed IP 192.168.0.50, and is configured to have the internet name issued to me by my ISP. From the internet, packets come in to my NAT router and port forwarding sends them to 192.168.0.50. No problems, and I think that's the normal way to do it.
I was initially unsure how to route packets from clients on the local network. The clients have the internet name of the mercury box, and so when I set them up I put an entry in the Windows hosts file to link it 192.168.0.50 - although I think I could have simply given the clients the IP. This also works, but I am not sure what is usual.
The problem is that I now have a smartphone and want to connect to my Mercury server, both through the phone network and locally through my wireless router. If I configure the mail client with the internet address of the server, I can connect locally but not through the internet. If I configure it with the local IP, the opposite applies.
My NAT is done on a single port ADSL modem router. This and my local clients are connected by a wireless router in bridge mode. With the phone client set up using the server's internet name, its log file shows it connects to the router, resolves the domain (to the public IP, I assume) and then (having no route to that IP) fails to connect.
Is there some way I can link the internet name to the local IP, for local traffic?
Thanks
Chris
<p>Mercury runs on a machine on my local network with a fixed IP 192.168.0.50, and is configured to have the internet name issued to me by my ISP. From the internet, packets come in to my NAT router and port forwarding sends them to 192.168.0.50. No problems, and I think that's the normal way to do it.</p><p>I was initially unsure how to route packets from clients on the local network. The clients have the internet name of the mercury box, and so when I set them up I put an entry in the Windows hosts file to link it 192.168.0.50 - although I think I could have simply given the clients the IP. This also works, but I am not sure what is usual.</p><p>The problem is that I now have a smartphone and want to connect to my Mercury server, both through the phone network and locally through my wireless router. If I configure the mail client with the internet address of the server, I can connect locally but not through the internet. If I configure it with the local IP, the opposite applies. </p><p> My NAT is done on a single port ADSL modem router. This and my local clients are connected by a wireless router in bridge mode. With the phone client set up using the server's internet name, its log file shows it connects to the router, resolves the domain (to the public IP, I assume) and then (having no route to that IP) fails to connect.&nbsp;
</p><p>Is there some way I can link the internet name to the local IP, for local traffic? </p><p>Thanks</p><p>Chris
</p>