title: ASP.NET and Python Communication
body: <p>I am trying to send a message from an asp.net website to a python file running on a raspberry pi.  If this is the code on for the python on the pi</p>
  
  <pre class="lang-py prettyprint-override"><code>import socket
  
  serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  serversocket.bind(('localhost', 8089))
  serversocket.listen(5) # become a server socket, maximum 5 connections
  
  while True:
      connection, address = serversocket.accept()
      buf = connection.recv(64)
      if len(buf) &gt; 0:
      print buf
      break
  </code></pre>
  
  <p>I just need some help getting started.  Assuming I know the external and internal ip address of the Raspberry Pi that is running the Python code, how would I get started with the code using ASP.NET?</p>
  
  <p>Would I use <code>socket.io</code> or something else?  What is the best idea or method to communicate between an ASP.NET website and Python?  I know the question is very general but I just need some help to get started in the right direction.</p>