In Virtual Box, I setup the network as bridged. This allows CentOS to acquire an IP via DHCP, the IP is not 127.0.0.1. At the bottom of the VM window in Virtual Box, hover your mouse over the network icon, and the popup will show the active IP address.
[caption id="" align="alignnone" width="325"]Image may be NSFW.
Clik here to view. IP address in popup[/caption]