Port 8081 - same problem. I run it with administrator permissions.
пятница, 27 января 2017 г., 11:15:48 UTC+3 пользователь Jani Tiainen написал:
-- пятница, 27 января 2017 г., 11:15:48 UTC+3 пользователь Jani Tiainen написал:
Hi,
Most probably accesses to ports below 1024 requires that you start daphne from administrator elevated prompt.
On 27.01.2017 09:52, Алексей Кузуб wrote:
I have IIS, and i ran IIS in front of Daphne which handle SSL. But when i run daphne to listen port which support https in IIS, daphne tell me--"2017-01-27 10:19:37,082 CRITICAL Unhandled error in Deferred:2017-01-27 10:19:37,082 CRITICALTraceback (most recent call last):File "c:\python35\lib\site-packages\twisted\internet\tcp. py", line 981, in startListening skt.bind(addr)OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions
During handling of the above exception, another exception occurred:
Traceback (most recent call last):File "c:\python35\lib\site-packages\twisted\internet\ defer.py", line 121, in execute result = callable(*args, **kw)File "c:\python35\lib\site-packages\twisted\internet\ posixbase.py", line 478, in listenTCP p.startListening()File "c:\python35\lib\site-packages\twisted\internet\tcp. py", line 983, in startListening raise CannotListenError(self.interface, self.port, le) twisted.internet.error.CannotListenError: Couldn't listen on 0.0.0.0:1001: [WinError 10013] An attem pt was made to access a socket in a way forbidden by its access permissions."I tried different ports, which allowed in firewall. What i am doing wrong?
пятница, 27 января 2017 г., 10:27:52 UTC+3 пользователь Sgiath написал:Yes you can.
daphne -e ssl:443:privateKey=key.pem:certKey=crt.pem django_project.asgi:channel_ layer For more info look at the Daphne GitHub repo https://github.com/django/daph
ne/ But I would suggest run Nginx in front of the Daphne which will handle SSL.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com .
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4d9a0247- .c5d0-4733-980f-dd991d871719% 40googlegroups.com
For more options, visit https://groups.google.com/d/optout .
-- Jani Tiainen
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d742f20d-b74b-441c-a908-0184b0112b36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment