private address if vpc

if instance is behind a vac use the private address, not the dns nor
public ip