Fix minnor bugs, add support to configure a private IP