EasyN2N 常见问题解决方法

N2N 2021/11/13

这里记录一些我个人使用过程中遇到的问题,可能不是很全面,往后会逐步增加

服务器监控

调试模式

  • 遇到一些启动不了的故障时,可以先使用调试模式查阅日志
  • 入口:主界面菜单 – 常见问题 – 调试模式

WARNING: supernode not responding, now trying

send REGISTER_SUPER to supernode …….. asking for IP address

  • supernode(服务器)没有正常运行
  • supernode若正常运行,但客户端提示上述错误,建议排查连接性(考虑端口屏蔽、UDP阻断等)
  • 若自建服务器,检查防火墙是否放行端口或关闭(阿里云、腾讯云等还需放行安全组)
  • edge和supernode版本不匹配
  • 触发本站免费及捐赠服务器的大流量屏蔽机制,点此查询是否被屏蔽
  • 为防止滥用,免费及捐赠服务器均会不定期更换地址和端口,如遇此问题请尝试重新获取服务器信息

ERROR: authentication error, MAC or IP address already in use or not released yet by supernode

  • 等待2分钟左右,supernode会释放占用的MAC和IP,然后edge会自动重新分配地址
  • 服务端使用 -M 参数启动
  • 强制结束进程(SIGKILL)则会导致edge没来得及向supernode报告,所以需要在结束edge进程前,发送终止信号(SIGINT、SIGTERM),对应Windows命令行下则需以Ctrl+C结束

连接正常,但ping不通对方

  • 此问题大概率是Windows系统自带防火墙的问题,先尝试关闭
  • 检查是否给予edge(客户端)管理员权限,导致程序无法给虚拟网卡分配IP
  • 检查本机是否存在多张TAP网卡(比如TeamView就可能会和N2N虚拟网卡冲突),使用 -d “网卡名称” 来指定EasyN2N使用的网卡
  • 使用EasyN2N菜单 – 常见问题 –  调试模式,分析日志

自动分配IP,获取到重复IP

  • 检查附加参数中 -I 参数值是否相同,如果相同,则可能导致分配到相同IP,需修改为不一样的值

启动后,ping自己的虚拟IP不通

  • 检查是否给予edge(客户端)管理员权限,导致程序无法给虚拟网卡分配IP
  • 检查本机是否存在多张TAP网卡(比如TeamView就可能会和N2N虚拟网卡冲突),使用 -d “网卡名称” 来指定EasyN2N使用的网卡

UPnP、NAT-PMP……failed
no IGD UPnP device found on the network

  • 检查路由器是否打开UPnP开关
  • 若无法操作UPnP开关,则此条提示不影响使用(可以通过附加参数 --no-port-forwarding 关闭)

连接正常,但容易中断

  • Windows下的N2N数据传输(直连或中转)均通过UDP传输,在部分情况下,运营商会对UDP数据进行一定的限制,参考这篇:聊聊运营商对UDP的QoS限制和应对
  • 解决方法:
  • 1. 附加参数里使用 -S2强制使用服务器进行中转传输,使用教程(Linux端也可以用 -S1)
  • 2. 伪装UDP传输(如 UDP2raw *需自建服务器,EasyN2N内置或付费捐赠服务器均不支持)
  • 3. 通过Linux中转(Linux支持N2N的TCP传输 -S2 参数)
  • 4. 使用UDP over TCP方法将UDP数据转换为TCP数据传输(教程在此
  • 同时也需要考虑服务器的稳定性(如果无法直连,尽量选择低延迟服务器)

自建服务端能不能防止服务器公开?

N2N有手机版吗?

WSAGetLastError ……

保存失败检查目录写入权限

  • 打开 n2n_client\config\ 目录,分别新建三个文件,不用填任何内容(注意扩展名)
  • config.ini  |  free_server.ini  |  plus_server.ini

连接正常,ping的通,但找不到房间(或找得到房间,但无法加入)

本文标签:


505 条评论

  • cyuni 评论于 回复

    WARNING: encryption is disabled in edge
    这是?

  • cyuni 评论于 回复

    May 8 2022 23:45:52
    20/Aug/2023 23:06:50 [edge.c:1118] using compression: none.
    20/Aug/2023 23:06:50 [edge.c:1119] using null cipher.
    20/Aug/2023 23:06:50 [edge_utils.c:399] number of supernodes in the list: 1

    20/Aug/2023 23:06:50 [edge_utils.c:474] WARNING: encryption is disabled in edge
    20/Aug/2023 23:06:50 [edge_utils.c:490] successfully created resolver thread
    20/Aug/2023 23:06:50 [edge_utils.c:495] successfully created port mapping thread
    20/Aug/2023 23:06:50 [edge.c:1143] use manually set IP address

    求救

  • tffff 评论于 回复

    win11打开ui文字是乱码怎么解决

  • 老杨 评论于 回复

    请问服务器端的n2n那个supernode命令怎么关闭呢,联机的时候长时间会出问题,又不想重启服务器

  • 繁华 评论于 回复

    添加了目录写入的三个文件,但还是保存失败,一直获取不了

  • das 评论于 回复

    站长您好,我和朋友互相能够ping到且在游戏内可以看到对方房间,在小组名称一致,版本一致,模组一致的前提下,加入后一直显示联机超时,请问如何解决
    [2023-08-10 09:09:49] adding supernode = n2n.s1.bugxia.com:51416
    [2023-08-10 09:09:49] starting n2n edge 3.1.1-16-g23e168b-dirty-r1200 x64_static May 8 2022 23:45:52
    [2023-08-10 09:09:49] using compression: none.
    [2023-08-10 09:09:49] using null cipher.
    [2023-08-10 09:09:49] number of supernodes in the list: 1
    [2023-08-10 09:09:49] supernode 0 => n2n.s1.bugxia.com:51416
    [2023-08-10 09:09:49] WARNING: encryption is disabled in edge
    [2023-08-10 09:09:49] successfully created resolver thread
    [2023-08-10 09:09:49] successfully created port mapping thread
    [2023-08-10 09:09:49] use manually set IP address
    [2023-08-10 09:09:49] created local tap device IP: 172.22.200.18, Mask: 255.255.255.0, MAC: 00:FF:32:8E:AC:FB
    [2023-08-10 09:09:49] edge started
    [2023-08-10 09:09:49] successfully joined multicast group 224.0.0.68:1968
    [2023-08-10 09:09:49] [OK] edge <<>> supernode
    [2023-08-10 09:09:51] NAT-PMP added TCP port mapping: 100.103.117.75:62670 -> localhost:62670
    [2023-08-10 09:09:51] NAT-PMP added UDP port mapping: 100.103.117.75:62670 -> localhost:62670

    • Bug侠 评论于 回复

      @das
      什么游戏呢?N2N对大部分游戏的支持度还不是很好

  • zdl 评论于 回复

    你好站长,我现在朋友的easyN2N发生了一系列问题如下:
    1,已通过链接进入了服务器后,无法自动分配虚拟网IP,手输也不行,点击启动后0.1秒就会跳回启动前的状态。
    2,点击运行日志只会显示【请启动客户端以显示日志】
    3,点开【测试工具】中的【联机相关】中获取网卡信息后,只会显示网卡而不会显示跃点数,也无法保存修改后的跃点数。

    麻烦帮忙解决一下以上问题,谢谢

    • Bug侠 评论于 回复

      @zdl
      1.其问题点在于【启动后0.1秒就会跳回启动前的状态】,需要使用调试模式收集并分析日志
      2.同上
      3.无法通过软件修改的话,可以手动修改,参考:https://bugxia.com/1770.html 一文

  • Takanashi1 评论于 回复

    02/Aug/2023 22:35:35 [edge_utils.c:3571] adding supernode = n2n.s1.bugxia.com:51416
    02/Aug/2023 22:35:35 [edge.c:1112] starting n2n edge 3.1.1-16-g23e168b-dirty-r1200 x64_static May 8 2022 23:45:52
    02/Aug/2023 22:35:35 [edge.c:1118] using compression: none.
    02/Aug/2023 22:35:35 [edge.c:1119] using null cipher.
    02/Aug/2023 22:35:35 [edge_utils.c:399] number of supernodes in the list: 1
    02/Aug/2023 22:35:35 [edge_utils.c:401] supernode 0 => n2n.s1.bugxia.com:51416
    02/Aug/2023 22:35:35 [edge_utils.c:474] WARNING: encryption is disabled in edge
    02/Aug/2023 22:35:35 [edge_utils.c:490] successfully created resolver thread
    02/Aug/2023 22:35:35 [edge_utils.c:495] successfully created port mapping thread
    02/Aug/2023 22:35:35 [edge.c:1149] automatically assign IP address by supernode
    02/Aug/2023 22:35:35 [edge.c:1221] send REGISTER_SUPER to supernode [n2n.s1.bugxia.com:51416] asking for IP address
    ip分配不出来,请问这是edge版本不匹配吗,该如何解决?

  • 1111 评论于 回复

    站长站长,这个是什么原因啊

    02/Aug/2023 12:31:00 [edge_utils.c:3571] adding supernode = n2n.haoren.eu.org:10090
    02/Aug/2023 12:31:00 [edge.c:1112] starting n2n edge 3.1.1-16-g23e168b-dirty-r1200 x64_static May 8 2022 23:45:52
    02/Aug/2023 12:31:00 [edge.c:1118] using compression: none.
    02/Aug/2023 12:31:00 [edge.c:1119] using null cipher.
    02/Aug/2023 12:31:00 [edge_utils.c:399] number of supernodes in the list: 1
    02/Aug/2023 12:31:00 [edge_utils.c:401] supernode 0 => n2n.haoren.eu.org:10090
    02/Aug/2023 12:31:00 [edge_utils.c:474] WARNING: encryption is disabled in edge
    02/Aug/2023 12:31:00 [edge_utils.c:490] successfully created resolver thread
    02/Aug/2023 12:31:00 [edge_utils.c:495] successfully created port mapping thread
    02/Aug/2023 12:31:00 [edge.c:1149] automatically assign IP address by supernode
    02/Aug/2023 12:31:00 [edge.c:1221] send REGISTER_SUPER to supernode [n2n.haoren.eu.org:10090] asking for IP address
    02/Aug/2023 12:31:02 [n2n_port_mapping.c:373] WARNING: NAT-PMP invalid response type 0
    02/Aug/2023 12:31:02 [n2n_port_mapping.c:404] WARNING: NAT-PMP local TCP port 53424 mapping failed
    02/Aug/2023 12:31:02 [n2n_port_mapping.c:373] WARNING: NAT-PMP invalid response type 0
    02/Aug/2023 12:31:02 [n2n_port_mapping.c:412] WARNING: NAT-PMP local UDP port 53424 mapping failed
    02/Aug/2023 12:31:03 [edge.c:1221] send REGISTER_SUPER to supernode [n2n.haoren.eu.org:10090] asking for IP address
    02/Aug/2023 12:31:04 [n2n_port_mapping.c:212] UPnP added TCP port mapping: 10.192.73.229:53424 -> 192.168.3.59:53424
    02/Aug/2023 12:31:04 [n2n_port_mapping.c:222] UPnP added UDP port mapping: 10.192.73.229:53424 -> 192.168.3.59:53424
    02/Aug/2023 12:31:06 [edge.c:1221] send REGISTER_SUPER to supernode [n2n.haoren.eu.org:10090] asking for IP address
    02/Aug/2023 12:31:09 [edge.c:1221] send REGISTER_SUPER to supernode [n2n.haoren.eu.org:10090] asking for IP address
    02/Aug/2023 12:31:12 [edge.c:1221] send REGISTER_SUPER to supernode [n2n.haoren.eu.org:10090] asking for IP address
    02/Aug/2023 12:31:15 [edge.c:1221] send REGISTER_SUPER to supernode [n2n.haoren.eu.org:10090] asking for IP address
    02/Aug/2023 12:31:18 [edge.c:1221] send REGISTER_SUPER to supernode [n2n.haoren.eu.org:10090] asking for IP address
    02/Aug/2023 12:31:21 [edge.c:1221] send REGISTER_SUPER to supernode [n2n.haoren.eu.org:10090] asking for IP address

  • Dorian 评论于 回复

    您好,我遇到了上述问题中的第一个,自定义IP时显示没有回应,获取虚拟IP时一直在请求IP地址。但是我在开启调试模式的时候,cmd中第一行直接显示系统找不到指定的路径,请问这样该怎么解决,麻烦您了。

    • Bug侠 评论于 回复

      @Dorian
      请粘贴一下日志,调试模式的日志也可以

      • Dorian 评论于 回复

        @Bug侠
        非常感谢您的回复,最近日程较忙才看到不好意思;

        调试模式永远都是:
        系统找不到指定的路径
        请按任意键继续…
        之后按什么键位都会直接退出

        我用的是捐赠服务器,直接用星号代替
        这是我在请求虚拟ip时的运行日志:

        [2023-08-05 13:03:22] adding supernode = *****
        [2023-08-05 13:03:22] starting n2n edge 3.1.1-16-g23e168b-dirty-r1200 x64_static May 8 2022 23:45:52
        [2023-08-05 13:03:22] using compression: none.
        [2023-08-05 13:03:22] using null cipher.
        [2023-08-05 13:03:22] number of supernodes in the list: 1
        [2023-08-05 13:03:22] supernode 0 => *****
        [2023-08-05 13:03:22] WARNING: encryption is disabled in edge
        [2023-08-05 13:03:22] successfully created resolver thread
        [2023-08-05 13:03:22] successfully created port mapping thread
        [2023-08-05 13:03:22] automatically assign IP address by supernode
        [2023-08-05 13:03:22] send REGISTER_SUPER to supernode [*****] asking for IP address
        [2023-08-05 13:03:25] send REGISTER_SUPER to supernode [*****] asking for IP address

        这是我自定义ip之后的运行日志:
        [2023-08-05 13:04:47] adding supernode = *****
        [2023-08-05 13:04:47] starting n2n edge 3.1.1-16-g23e168b-dirty-r1200 x64_static May 8 2022 23:45:52
        [2023-08-05 13:04:47] using compression: none.
        [2023-08-05 13:04:47] using null cipher.
        [2023-08-05 13:04:47] number of supernodes in the list: 1
        [2023-08-05 13:04:47] supernode 0 => *****
        [2023-08-05 13:04:47] WARNING: encryption is disabled in edge
        [2023-08-05 13:04:47] successfully created resolver thread
        [2023-08-05 13:04:47] successfully created port mapping thread
        [2023-08-05 13:04:47] use manually set IP address
        [2023-08-05 13:04:47] created local tap device IP: 10.250.1.1, Mask: 255.255.255.0, MAC: 00:FF:DF:EE:28:AB
        [2023-08-05 13:04:47] edge started
        [2023-08-05 13:04:47] successfully joined multicast group 224.0.0.68:1968
        [2023-08-05 13:04:58] WARNING: supernode not responding, now trying [*****]

        感谢您的回复

        • Bug侠 评论于 回复

          @Dorian
          客气了,根据日志,可能是以下两条
          1.触发本站免费及捐赠服务器的大流量屏蔽机制
          2.为防止滥用,免费及捐赠服务器均会不定期更换地址和端口,如遇此问题请尝试重新获取服务器信息
          ================
          1.检查一下你本机的服务器列表是否和本站提供的捐赠服务器列表保持一致
          2.若干台捐赠服务器,每个都试一试

    评论(本站已开启评论回复邮件通知功能,请如实填写邮箱以便及时收到回复)