Server requests port number before starting

Light function working, still some bugs