How to expose a port in gitlab runner during runtime

I want to enable the port in gitlab runner. Anybody please help on this