VeighNa量化社区
你的开源社区量化交易平台
Member
加入于:
帖子: 128
声望: 0

Traceback (most recent call last):
File "D:\code\js_vnpy_trading\vnpy\trader\ui\widget.py", line 1006, in connect
self.main_engine.connect(setting, self.gateway_name)
File "D:\code\js_vnpy_trading\vnpy\trader\engine.py", line 185, in connect
gateway.connect(setting)
File "D:\code\js_vnpy_trading\vnpy\gateway\rpc\rpc_gateway.py", line 43, in connect
self.query_all()
File "D:\code\js_vnpy_trading\vnpy\gateway\rpc\rpc_gateway.py", line 70, in query_all
contracts = self.client.get_all_contracts()
File "D:\code\js_vnpy_trading\vnpy\rpc__init__.py", line 247, in dorpc
raise RemoteException(msg)
vnpy.rpc.RemoteException: Timeout of 30000ms reached for ['get_all_contracts', (), {}]

127.0.0.1已经换成了局域网IP:192.168.11.237,而且在另外一台电脑上也是能ping的通的。

Member
avatar
加入于:
帖子: 536
声望: 28

telnet试试端口通不通?

Member
加入于:
帖子: 128
声望: 0

telnet测试端口不通,通过把IP改成公网IP则宁外一台机子能RPC客户端连接。

Member
加入于:
帖子: 128
声望: 0

要怎么调试才能用局域网IP?

Member
avatar
加入于:
帖子: 3469
声望: 228

telnet端口不通有很多可能,建议先解决这个问题再连

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】