Skip to content

求大佬说一下远程控制alas自行搭建服务器的大概思路 #1561

Answered by yzbyzz
asdfhdasfhasd asked this question in Q&A
Discussion options

You must be logged in to vote

不知道你的使用场景是怎样的,我说一下我的使用情况。

设备和设置如下:

  • 运行模拟器 和 ALAS 的内网计算机
    • 运行模拟器和 ALAS
    • 运行 frpc (frp 设置 http 方式)
  • 具有固定公网 ip 的云服务器
    • 运行 frps
    • 运行 Nginx
    • 配置域名 _YOUR_DOMAIN_ 指向此云服务器,Nginx 将请求转发到 frps 端口 _FRPS_SERVER_HTTP_PORT_

参考配置

# frpc.ini

[common]
server_addr = _FRPS_SERVER_IP_
server_port = _FRPS_SERVER_PORT_

[web]
type = http
local_ip = 127.0.0.1
local_port = 22267
custom_domains = _YOUR_DOMAIN_
# frps.ini

[common]
bind_port = _FRPS_SERVER_PORT_
vhost_http_port = _FRPS_SERVER_HTTP_PORT_

# console or real logFile path like ./frps.log
log_file = /var/log/frps.log

# trace, debug, info, warn, error
log_level = info

log_max_days = 3

在其他任意电脑或者手机上访问 _YOUR_DOMAIN_ 即可访问内网计算机上的 ALAS。(和在本地打开 http://127.0.0.…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@asdfhdasfhasd
Comment options

Comment options

You must be logged in to vote
2 replies
@asdfhdasfhasd
Comment options

@asdfhdasfhasd
Comment options

Answer selected by asdfhdasfhasd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants