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

Cannot access service by IP (localhost or 127.0.0.1 works) #20

Open
surecc opened this issue Apr 2, 2015 · 6 comments
Open

Cannot access service by IP (localhost or 127.0.0.1 works) #20

surecc opened this issue Apr 2, 2015 · 6 comments

Comments

@surecc
Copy link

surecc commented Apr 2, 2015

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

@sanmaopep
Copy link

I can't access too

@sanmaopep
Copy link

sanmaopep commented Nov 11, 2016

You can use nginx to make a proxy.

@sagespidy
Copy link

You can use nginx to make a proxy.

Thanks

@kdyzm
Copy link

kdyzm commented Jan 29, 2019

You can use nginx to make a proxy.

This is a good idea, but this bug needs to be fixed.

@golharam
Copy link

golharam commented May 7, 2019

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.

@DmitryAndreyeff
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants