-
Notifications
You must be signed in to change notification settings - Fork 93
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
Cannot access service by IP (localhost or 127.0.0.1 works) #20
Comments
I can't access too |
You can use nginx to make a proxy. |
Thanks |
This is a good idea, but this bug needs to be fixed. |
Its not a bug, the server is only listening on the loop-back address, 127.0.0.1. Looks like there is a '--address' which you can use to specify the IP address to listen to. |
Try adding --address=0.0.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can't access the service from my own IP, but 127.0.0.1 works
can you tell me why and help me out?
when i start with :
mock-server --address=119.254.100.35 --dir=/root/mockServer
it occours:
Traceback (most recent call last):
File "/usr/local/bin/mock-server", line 66, in
main()
File "/usr/local/bin/mock-server", line 60, in main
server.bind(options.port, options.address)
File "/usr/local/lib/python2.7/site-packages/tornado/tcpserver.py", line 170, in bind
backlog=backlog)
File "/usr/local/lib/python2.7/site-packages/tornado/netutil.py", line 145, in bind_sockets
sock.bind(sockaddr)
File "/usr/local/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 99] Cannot assign requested address
The text was updated successfully, but these errors were encountered: