fix ip address to work both vagrant and ec2