Use localhost as default in socket sensor.