Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问怎么设置http代理? #140

Open
chengw-cn opened this issue Jul 22, 2023 · 4 comments
Open

请问怎么设置http代理? #140

chengw-cn opened this issue Jul 22, 2023 · 4 comments

Comments

@chengw-cn
Copy link

Environment

rtty

  • arch:
  • os:
  • version:

rttys

  • arch:
  • os:
  • version:

Description

Formating code blocks by wrapping them with pairs of ```

请问怎么设置http代理?
我的服务器是局域网IP 192.168.2.22,公网IP 11.22.33.44, 公网IP有几个端口(51660-51669)映射到这服务器局域网地址.
addr-dev: :51665
addr-user: :51666

Automatically select an available port in default

#addr-http-proxy:
#http-proxy-redir-url:

请问该怎么设置?感谢!!

@chengw-cn
Copy link
Author

test@v2xtest:/opt/app/rttys$ sudo ./rttys
2023-07-22T16:29:59+08:00 |INFO| Go Version: go1.18.1
2023-07-22T16:29:59+08:00 |INFO| Go OS/Arch: linux/amd64
2023-07-22T16:29:59+08:00 |INFO| Rttys Version: 4.1.1
2023-07-22T16:29:59+08:00 |INFO| Git Commit: 173c9db
2023-07-22T16:29:59+08:00 |INFO| Build Time: 2023-05-29T13:56:42+0000
下面两项只要去注释后,设置后程序会自动启用默认设置 addr-dev: :5912 addr-user: :5913
#addr-http-proxy: 公网IP ? 加端口?
#http-proxy-redir-url: ?

@zhaojh329
Copy link
Owner

HttpProxyPort: 9999

@chengw-cn
Copy link
Author

test@v2xtest:/opt/app/rttys$ cat rttys.conf
addr-dev: :51665
addr-user: :51666

HttpProxyPort:9999
#Automatically select an available port in default
#addr-http-proxy:
#http-proxy-redir-url:

不是上面这样的吧?这样程序自动启用默认设置 addr-dev: :5912 addr-user: :5913

不做任何代理设置时,当我电脑在服务器同局域网时,通过局域网IP登录服务器后 可以 访问设备的WEB,用公网IP登录服务器不行。
公网IP有几个端口(51660-51669)映射到这服务器局域网地址。
谢谢!

@moongu0514
Copy link

我看动图上地址端口是5914

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants