Allow bind to be set, and make ip optional