Check socket error if no network interface available