Added get_local_ip function

We will need this function