The config.ini example can also be downloaded directly (right click and save as) and then modified by yourself (note, windows users, download the windows version here )
#将本文件放置于natapp同级目录 程序将读取 [default] 段
#在命令行参数模式如 natapp -authtoken=xxx 等相同参数将会覆盖掉此配置
#命令行参数 -config= 可以指定任意config.ini文件
[default]
authtoken= #对应一条隧道的authtoken
clienttoken= #对应客户端的clienttoken,将会忽略authtoken,若无请留空,
log=none #log 日志文件,可指定本地文件, none=不做记录,stdout=直接屏幕输出 ,默认为none
loglevel=ERROR #日志等级 DEBUG, INFO, WARNING, ERROR 默认为 DEBUG
http_proxy= #代理设置 如 http://10.123.10.10:3128 非代理上网用户请务必留空
Note:
http_proxy is used for users who cannot directly access the Internet and need to go through a proxy to access the Internet. For other users, please leave blank
Old versions of windows such as windows xp and other old versions of windows server do not support this method, please use the command line method
command line mode
Run natapp -h to see the command line parameters. The parameters are synchronized with config.ini as described above. The command line mode will overwrite the same parameters in config.ini
The command line parameter -config= can specify any config.ini file
Multi-open method
Windows can create a bat file to download (right click and save as)
start natapp -authtoken=xxxx
start natapp -authtoken=xxxx
Put the bat file in the same directory as natapp.exe and modify the authtoken, double-click to run the bat to open two or more natapps at the same time
For other systems, such as linux, etc., you can create a shell by yourself