Added helper function to get node ip