Make server address for socket dynamic