Added optional argument to select port to bind to