Support custom port for shared header