support localhost and not ip