use gateway for internet detection