Added dynamic ip and ssl support