Added -e flag for external ip