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

如何设置远程服务器的ip地址呢? #2

Closed
luckypoem opened this issue Nov 13, 2015 · 7 comments
Closed

如何设置远程服务器的ip地址呢? #2

luckypoem opened this issue Nov 13, 2015 · 7 comments

Comments

@luckypoem
Copy link

hi.
我看了localServer.py文件(https://github.com/wdongxv/DDDProxy/blob/master/localServer.py),没有发现设置远程服务器的ip地址的地方,那么如何设置远程服务器的ip地址呢?

@wdongxv
Copy link
Owner

wdongxv commented Nov 17, 2015

运行后,用浏览器打开http://127.0.0.1:8080

@wdongxv wdongxv closed this as completed Nov 21, 2015
wdongxv added a commit that referenced this issue Nov 21, 2015
@luckypoem
Copy link
Author

hi.

yudeMacBook-Air:dddproxy brite$ python localServer.py
start server on: :8080
Traceback (most recent call last):
File "localServer.py", line 36, in
server.start()
File "/Users/yuming/dddproxy/DDDProxy/baseServer.py", line 373, in start
self.onSocketEvent(sock, sockConnect.socketEventCanRecv)
File "/Users/yuming/dddproxy/DDDProxy/baseServer.py", line 397, in onSocketEvent
connect.onSocketEvent(event)
File "/Users/yuming/dddproxy/DDDProxy/baseServer.py", line 220, in onSocketEvent
self._onReadyRecv()
File "/Users/yuming/dddproxy/DDDProxy/baseServer.py", line 202, in _onReadyRecv
self.onRecv(data)
File "/Users/yuming/dddproxy/DDDProxy/localProxyServerHandler.py", line 54, in onRecv
connect = localToRemoteConnectManger.getConnect()
File "/Users/yuming/dddproxy/DDDProxy/localToRemoteConnectManger.py", line 117, in getConnect
return localToRemoteConnectManger.manager.get()
File "/Users/yuming/dddproxy/DDDProxy/localToRemoteConnectManger.py", line 68, in get
if self.remoteConnectListLoop >= len(remoteServerList)*maxConnectByOnServer:
TypeError: object of type 'NoneType' has no len()
yudeMacBook-Air:dddproxy brite$

怎么解决问题?

@wdongxv
Copy link
Owner

wdongxv commented Nov 30, 2015

你好,刚刚已经修复了,更新下试试

@luckypoem
Copy link
Author

hi.

yudeMacBook-Air:dddproxy yuming$ git pull
remote: Counting objects: 75, done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 75 (delta 32), reused 24 (delta 24), pack-reused 30
Unpacking objects: 100% (75/75), done.
From https://github.com/wdongxv/DDDProxy
95d563b..d745571 master -> origin/master
8fca6dc..f57b4b6 asyncIO -> origin/asyncIO
Updating 95d563b..d745571
Fast-forward
.pydevproject | 2 +-
DDDProxy/baseServer.py | 7 +++++--
DDDProxy/domainConfig.py | 10 ++++++++--
DDDProxy/localProxyServerHandler.py | 12 +++++++-----
DDDProxy/localToRemoteConnectManger.py | 6 ++++--
DDDProxy/symmetryConnectServerHandler.py | 17 +++++++++--------
DDDProxy/template/index.html | 5 +++--
DDDProxy/template/pac.js | 23 ++++++++++++++++++-----
DDDProxy/version.py | 10 ++++++++++
localServer.py | 14 ++++++++++----
macx/install.sh | 20 ++++++++++++++++++++
macx/restart.sh | 7 +++++++
readme.md | 2 +-
13 files changed, 103 insertions(+), 32 deletions(-)
create mode 100644 DDDProxy/version.py
create mode 100755 macx/install.sh
create mode 100755 macx/restart.sh
yudeMacBook-Air:dddproxy yuming$ ls
DDDProxy localServer.py macx readme.md remoteServer.py
yudeMacBook-Air:dddproxy yuming$ python localServer.py
start server on: :8080
Already up-to-date.

但是还是翻不了墙啊。

@luckypoem
Copy link
Author

hi.

你还是未回答我的问题:
“我看了localServer.py文件(https://github.com/wdongxv/DDDProxy/blob/master/localServer.py),没有发现设置远程服务器的ip地址的地方,那么如何设置远程服务器的ip地址呢?”啊。

可否答复下呢?
非常感谢!

@luckypoem
Copy link
Author

hi。

感觉完全不需要远程服务器似的,那怎么翻得了墙呢?

@wdongxv
Copy link
Owner

wdongxv commented Dec 8, 2015

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

2 participants