Update script to receive server and port