Support custom port setting