Replace hostname -f with addr and hostname -i for using the local nodes IP instead.