Comments (2)
start_gateway.php 中lanip写错了,不能是0.0.0.0,
如果GatewayClient和GatewayWorker在同一个局域网,应该用本机内网ip
如果不在一个局域网,可以写外网ip。
因为GatewayClient要从外部使用这个lanip填写的值去连gateway的,填写0.0.0.0是连不上的,必须给出实际gateway 的ip地址。
from gatewayclient.
如果通过路由器的端口映射的形式,把gateway分布式。这个时候client要写什么?client先去连接register拿到gateway的通信地址,这个地址是内网的。但执行client的是在外网的服务器上,这个时候我该怎么做?
都运行在同一台机器上,或者都在内网,怎么玩都能通信。
from gatewayclient.
Related Issues (20)
- 升级测试3.0.0升级到3.0.9不能绑定uid,返回null HOT 6
- constant spell wrong HOT 1
- PHP Warning: pack(): Type H: illegal hex digit HOT 3
- Fatal error: in ../../Gateway.php on line 1286 HOT 3
- Can not connect to tcp://127.0.0.1:1236 Connection refused HOT 2
- GatewayWorker 使用的是3.0.12版本 PHP 5.6.31 安装时报如下错误: composer require workerman/gatewayclient HOT 1
- How can I send messages to different server in one request ? HOT 1
- 权限验证怎么做? HOT 3
- memory leak problem
- 使用client循环到注册中心去取数据有时候会报错 HOT 2
- GatewayClient使用Gateway::getUidListByGroup报错 HOT 1
- 使用GatewayClient的时候报错,本来好好的,不知道为啥突然报错了。、 HOT 1
- 在一次http接口请求中执行多次sendToUid报错 HOT 1
- 容器端口映射后,通过宿主机ip访问会出错,不兼容!
- 大佬 把 gateway.php的 19行 版本改一下吧 HOT 1
- strlen() expects parameter 1 to be string, array given HOT 1
- Windows+WSL开发环境
- 前端异常掉线,GatewayClient如何感知 HOT 1
- 建议把 self::$registerAddress 改成 static::$registerAddress HOT 2
- 关于Gateway类中的secretKey 说明 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatewayclient.