Please check whether the device and pc are on the same segment

I use the cocos code ide the develop the cocos2dx lua project in Mac, when I trriger the comandf11, the IDE trriger a error “please check whether the device and pc are on the same segment”. why?