This has been covered in the forums many times, if you're behind a NAT router (or firewall) then you'll need a
Split DNS set-up. I'd also suggest you read the
Quick Start Installation Guide for details of the configuration of your /etc/hosts file and also search the forums to see what's needed.