Function to get ip
Merge remote-tracking branch 'origin/master'