use PublicIpAddress instead of PublicDnsName

Because I was having some connection issues.
remove commented out code