Fix elastic ip
Use ip when connecting to hosts