title: how to run django sslserver(https) such that remote systems in network can also access?
body: <p>I am trying to run my server with https, so I installed <code>django-sslserver</code>, and running as below.</p>
  
  <pre><code>python manage.py runsslserver --certificate /etc/ssl/certs/server.crt --key /etc/ssl/private/server.key 0.0.0.0:8000
  </code></pre>
  
  <p>It is running successfully with above command. I am able to access through <code>localhost:8000</code> or <code>127.0.0.1:8000</code>, but not able to access through <code>192.168.2.13:8000</code> here <code>192.168.2.13</code> is my IP address.</p>
  
  <p><strong>Why I am not able to access through my IP address ?</strong></p>
  
  <p>And even If start the server with other than <code>8000</code> port, it is default taking as <code>8000</code>. Here in the below example I have used <code>8014</code>, But its taking <code>8000</code> as default.</p>
  
  <pre><code>root@nagapavan-HP-ProBook-440-G2:/home/nagapavan/Downloads/celestial_NAS# python manage.py runsslserver --certificate /etc/ssl/certs/server.c --key /etc/ssl/private/server.key 127.0.0.1:8014
  Validating models...
  System check identified some issues:
  
  WARNINGS:
  NAS.UserProfile.user: (fields.W342) Setting unique=True on a ForeignKey has the same effect as using a OneToOneField.
      HINT: ForeignKey(unique=True) is usually better served by a OneToOneField.
  System check identified 1 issue (0 silenced).
  October 06, 2015 - 13:21:40
  Django version 1.8.4, using settings 'celestial_NAS.settings'
  Starting development server at 127.0.0.1:8000/
  Using SSL certificate: /etc/ssl/certs/server.crt
  Using SSL key: /etc/ssl/private/server.key
  Quit the server with CONTROL-C
  </code></pre>
  
  <p><strong>Why it is taking the port number 8000 as default?</strong></p>
  
  <p>I found one more command to start server as below. I can give the IP address and port number. It is working as as expected. But I am able to access with the IP address but not able to access through <code>localhost:9000</code> or <code>127.0.0.1:9000</code> even I am accessing the server my local system itself.</p>
  
  <p><strong>What might be the reason for above statement?</strong></p>
  
  <p>And even I am able to access through my IP address with <code>https://192.168.2.13:9000</code>, I am not able to access the server from remote system which is in the same network(even pingable to each other)</p>
  
  <p><strong>Why I am not able to access the server from remote system in the same network, Do we need to do any configuration file changes?</strong></p>
  
  <pre><code>python manage.py runsslserver --certificate /etc/ssl/certs/server.c --key /etc/ssl/private/server.key --addrport 192.168.2.13:9000
  </code></pre>
  
  <p><strong>Note:</strong> All the URIs above accessed with <strong>https</strong></p>
  
  <p>Adding the error which I am getting while starting sslserver as below:</p>
  
  <p>Is it the reason of issues above?</p>
  
  <pre><code>----------------------------------------
  ----------------------------------------
  Exception happened during processing of request from ('192.168.1.166', 56694)
  Traceback (most recent call last):
    File "/usr/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
      self.process_request(request, client_address)
    File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request
      self.finish_request(request, client_address)
    File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
      self.RequestHandlerClass(request, client_address, self)
    File "/usr/local/lib/python2.7/dist-packages/django/core/servers/basehttp.py", line 102, in __init__
      super(WSGIRequestHandler, self).__init__(*args, **kwargs)
    File "/usr/lib/python2.7/SocketServer.py", line 649, in __init__
      self.handle()
    File "/usr/local/lib/python2.7/dist-packages/django/core/servers/basehttp.py", line 167, in handle
      self.raw_requestline = self.rfile.readline(65537)
    File "/usr/lib/python2.7/socket.py", line 476, in readline
      data = self._sock.recv(self._rbufsize)
    File "/usr/lib/python2.7/ssl.py", line 341, in recv
      return self.read(buflen)
    File "/usr/lib/python2.7/ssl.py", line 260, in read
      return self._sslobj.read(len)
  SSLError: [Errno 1] _ssl.c:1429: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca
  ----------------------------------------
  ----------------------------------------
  </code></pre>