Research "nat loopback hairpinning reflection" and see if your router can support it. If you can't get your router to cooperate, the best answer I can think of is a manual hosts entry in each effected device.