bind to IPv6 only?

young-kyun Kim <[email protected]>
Newsgroups gmane.comp.python.cherrypy
Message-ID <[email protected]>
bind to IPv6 only

Hi!

I try to bind to IPv6 only.
But my server failed with ChannelFailures error.

------------------------------------------
Windows 8.1 Enterprise 64bit
Python 2.7.11 32bit
CherryPy 5.1.0
------------------------------------------
server_config = {
    "engine.autoreload.on": False,
    "server.socket_host": "::",
    "server.socket_port": 7070
}

cherrypy.config.update(server_config)
------------------------------------------

My server works well with "0.0.0.0"(IPv4 Only) or "::"(IPv4 + IPv6).

But My server don't work with "[::]", "0:0:0:0:0:0:0:0", 
"[0:0:0:0:0:0:0:0]"(IPv6 Only?).
7070 port don't used by any other process. (checked by tcpview)

Below is the error message of cherry.
Before below error message is displayed, my server does response to my 
request. 
-------------------------------------------------------------------------------------------
[23/Mar/2016:14:58:13] ENGINE Error in 'start' listener <bound method 
Server.start of <cherrypy._cpserver.Server object at 0x02F2CA90>>
Traceback (most recent call last):
  File "C:\devtool\py27x86\lib\site-packages\cherrypy\process\wspbus.py", 
line 203, in publish
    output.append(listener(*args, **kwargs))
  File "C:\devtool\py27x86\lib\site-packages\cherrypy\_cpserver.py", line 
168, in start
    ServerAdapter.start(self)
  File "C:\devtool\py27x86\lib\site-packages\cherrypy\process\servers.py", 
line 177, in start
    self.wait()
  File "C:\devtool\py27x86\lib\site-packages\cherrypy\process\servers.py", 
line 232, in wait
    wait_for_occupied_port(host, port)
  File "C:\devtool\py27x86\lib\site-packages\cherrypy\process\servers.py", 
line 458, in wait_for_occupied_port
    raise IOError("Port %r not bound on %r" % (port, host))
IOError: Port 7070 not bound on '[::]'

[23/Mar/2016:14:58:13] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "C:\devtool\py27x86\lib\site-packages\cherrypy\process\wspbus.py", 
line 241, in start
    self.publish('start')
  File "C:\devtool\py27x86\lib\site-packages\cherrypy\process\wspbus.py", 
line 221, in publish
    raise exc
ChannelFailures: IOError("Port 7070 not bound on '[::]'",)
-------------------------------------------------------------------------------------------

How can I bind to IPv6 only?

-- 
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.