Added possibility to set port from outside

Change-Id: I4805ff10cf5b1a9e7e63dc97a4cc9e967015cbfa