Moved server port an ip to window so it can be used in settings