title: Python/P2P - Unable to connect to rendezvous server
body: <p>I am trying to create a <code>P2P</code> node using python (<code>pyp2p</code>) but I am getting this error:</p>
  
  <pre><code>Eamons-MacBook-Pro:blockchain eamonwhite$ python3 serveralice.py
  HTTP Error 404: Not Found
  HTTP Error 404: Not Found
  HTTP Error 404: Not Found
  HTTP Error 404: Not Found
  Traceback (most recent call last):
    File "/Users/eamonwhite/.pyenv/versions/3.6.3/lib/python3.6/site-packages/pyp2p/net.py", line 732, in start
      rendezvous_con = self.rendezvous.server_connect()
    File "/Users/eamonwhite/.pyenv/versions/3.6.3/lib/python3.6/site-packages/pyp2p/rendezvous_client.py", line 92, in server_connect
      con.connect(server["addr"], server["port"])
    File "/Users/eamonwhite/.pyenv/versions/3.6.3/lib/python3.6/site-packages/pyp2p/sock.py", line 189, in connect
      self.s.bind((src_ip, 0))
  TypeError: str, bytes or bytearray expected, not NoneType
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "serveralice.py", line 10, in &lt;module&gt;
      alice.start()
    File "/Users/eamonwhite/.pyenv/versions/3.6.3/lib/python3.6/site-packages/pyp2p/net.py", line 735, in start
      raise Exception("Unable to connect to rendezvous server.")
  Exception: Unable to connect to rendezvous server.
  </code></pre>
  
  <hr>
  
  <p>My relevant code looks like this:</p>
  
  <pre><code>from uuid import uuid4
  from blockchain import Blockchain
  from flask import Flask, jsonify, request
  from pyp2p.net import *
  import time
  
  #Setup Alice's p2p node.
  alice = Net(passive_bind="192.168.1.131", passive_port=44444, interface="en0", node_type="passive", debug=1)
  alice.start()
  alice.bootstrap()
  alice.advertise()
  
  while 1:
      for con in alice:
          for reply in con:
              print(reply)
  
      time.sleep(1)
  
  ...
  </code></pre>
  
  <p>It is getting stuck on the <code>Net</code> function right at the beginning - something to do with the <code>rendezvous</code> package. The IP is my IP on the my network, and I port forwarded 44444 although I'm not sure if I need to do that or not. Thanks.</p>