Added option to provide aadress and port as arguments