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

-Dpowerjob.network.local.address` 绑定ip之后异常 #579

Closed
wangyongkang319 opened this issue Mar 8, 2023 · 5 comments
Closed

-Dpowerjob.network.local.address` 绑定ip之后异常 #579

wangyongkang319 opened this issue Mar 8, 2023 · 5 comments
Labels
question Further information is requested

Comments

@wangyongkang319
Copy link

server端的服务器是由一台路由器映射的外网ip,在-Dpowerjob.network.local.address` 绑定路由器ip之后报了一个 nested exception is java.util.concurrent.ExecutionException: java.net.BindException: Cannot assign requested address异常,请问这样服务器之间应该怎么配置

@wangyongkang319 wangyongkang319 added the question Further information is requested label Mar 8, 2023
@KFCFans
Copy link
Member

KFCFans commented Mar 17, 2023

PowerJob 目前的设计是纯内网系统,没有很强的安全设计,直接暴露在公网还是很危险的。建议自己搞个 VPN,server 和 worker 都依赖这个 VPN 的地址就好了。

如果一定要公网调度的话,可以试试 http 协议。

@paddyxi
Copy link

paddyxi commented May 17, 2023

docker network_mode:host
-Dpowerjob.network.local.address=192.xx.xx.xx
我在本地启动也遇到了这个问题 Cannot assign requested address

@KFCFans
Copy link
Member

KFCFans commented Aug 13, 2023

4.3.4 版本已正式支持外网访问,请查看 release 日志

@KFCFans KFCFans closed this as completed Aug 13, 2023
@luyuan9870
Copy link

我本地连接服务器上的server 拿的还是docker的ip地址...

@luyuan9870
Copy link

docker network_mode:host -Dpowerjob.network.local.address=192.xx.xx.xx 我在本地启动也遇到了这个问题 Cannot assign requested address

处理好了吗?

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

No branches or pull requests

4 participants