轻松办公-N2N轻松组建局域网

N2N组建局域网,用于远程调试。

N2N windows、linux平台安装包

1、服务端配置

我使用的是阿里云的windows服务端,所以下载windos版本的N2N supernode。
注意:1、由于N2N使用的是UDP协议,所以服务端要开启UDP协议出入口
2、配置的supernode端口号,要在服务端的出入口规则中设置为允许。
服务端配置文件supernode.conf如下


#        The configuration file is similar to the command line, with one option per line. An equal
#        sign '=' should be used between key and value. Example: -p=7777
#        This file contains a basic configuration example, please refer to the help (-h) for the full
#        list of available options.
#
#       -p
#        Sets the UDP listening port. 
#
-p=7777
#
#        -c
#        Optionally specifies the allowed communities as listed in community.list file.
#
# -c=community.list

3、执行supernode.exe启动服务

2、windos客户端edge节点

边缘节点有windos平台和ubuntu平台。

  1. windows平台
    由于需要使用的虚拟网卡,因此需要安装openVPN,
    并设置虚拟网卡TAP-windows Adapter V9重命名为“net0”
    ,之后执行edge.exe启动节点
  2. ubuntu平台
    执行 edge edge.conf启动节点
  3. 配置edge.conf
#
#         The configuration file is similar to the command line, with one option per line. An equal
#        sign '=' should be used between key and value. Example: -c=mynetwork or --community=mynetwork
#        This file contains a basic configuration example, please refer to the help (-h) for the full
#        list of available options.
#
#       -d|--tun-device
#        Specifies the name of the TUN interface. 
#虚拟网卡名称
-d=net0
#
#       -c|--community
#        Specifies the n2n community name the edge belongs to.
#虚拟节点所属组
-c=group
#
#       -k
#        Sets the encryption key (ASCII). The environment variable N2N_KEY=<key> can also be used. 
#虚拟节点所属组密码
-k=pass
#
#       -m
#        Specified the MAC address for the TAP interface (random otherwise).
#
# -m=DE:AD:BE:EF:99:99
#
#       -a
#        Sets the interface address. For DHCP use '-r -a dhcp:0.0.0.0'.
#虚拟地址IP
-a=182.22.22.22
#
#       -p
#        Sets the local UDP port to a fixed port.
#
-p=50001
#
#       -l|--supernode-list
#        Specifies the supernode IP and port.
#公网IP:端口
-l=*.*.*.*:7777
#

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
首先,n2n是一种虚拟专用网络(VPN)软件,可以将多个计算机连接在一个虚拟局域网(LAN)中。而VBALINK 1.73是一款Game Boy Advance模拟器,可以让用户在计算机上模拟运行GBA游戏。 要实现星之卡比:镜像迷宫远程局域网联机,需要先确保你和你的朋友都安装了VBALINK 1.73模拟器,并且都已经下载了星之卡比:镜像迷宫游戏ROM。 接下来,你们需要在各自的计算机上安装n2n软件,并创建一个虚拟局域网。你们可以按照以下步骤进行操作: 1. 下载并安装n2n软件,在你的计算机和你的朋友的计算机上都进行安装。 2. 启动n2n软件,在“Edge”选项卡中设置本地IP地址和端口,并输入对方的IP地址和端口。 3. 点击“Connect”按钮,连接到对方的计算机。如果连接成功,你们就可以在同一个虚拟局域网中。 4. 启动VBALINK 1.73模拟器,打开星之卡比:镜像迷宫游戏ROM。 5. 在模拟器的“Options”菜单中选择“Emulator”,然后选择“Network”选项卡。 6. 选择“Network Game Boy Advance”选项,并在“IP Address”和“Port”字段中输入你的虚拟局域网IP地址和端口。 7. 让你的朋友进行同样的操作,但是在“IP Address”和“Port”字段中输入他们自己的虚拟局域网IP地址和端口。 8. 现在你们可以开始游戏了。在模拟器的“File”菜单中选择“Link Local”,然后选择“Search for GBA ROMs”。 9. 选择“星之卡比:镜像迷宫”的游戏ROM,并开始游戏。你们现在可以像在同一个局域网中一样玩游戏了。 需要注意的是,n2n软件的性能取决于你和你的朋友的网络连接质量,因此如果你们的网络连接速度较慢,游戏可能会出现延迟或者卡顿的情况。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值