fixed to check if network interface is up or not

Hi,

I found a bug when I tried to connect a robot with my smartphone.
Networking errors sometimes occur because the inet addresses of downed network interface can be added to the available list.
So, I added the function of checking if network interface is up or not.