change how to get external ip to get it work on stanford nodes