This will only work if your VPC is set up to provide public DNS names to instances. Otherwise you will need to use `server.public_ip_address` instead (which you should be able to use in either case).