title: Problems getting telnet to connect to a python socket server
body: <p>So I'm starting to work on a kind of Internet of Things project and the first issue I'm stumbling upon is having trouble in setting up a basic server. Using this guide, to do some initial tests, here is the code being used:</p>
  
  <pre><code>'''
  
  
     Simple socket server using threads
  '''
  
  import socket
  import sys
  
  HOST = ''   # Symbolic name, meaning all available interfaces
  PORT = 8888 # Arbitrary non-privileged port
  
  s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  print 'Socket created'
  
  #Bind socket to local host and port
  try:
      s.bind((HOST, PORT))
  except socket.error as msg:
      print 'Bind failed. Error Code : ' + str(msg[0]) + ' Message ' + msg[1]
      sys.exit()
  
  print 'Socket bind complete'
  
  #Start listening on socket
  s.listen(10)
  print 'Socket now listening'
  
  #now keep talking with the client
  while 1:
      #wait to accept a connection - blocking call
      conn, addr = s.accept()
      print 'Connected with ' + addr[0] + ':' + str(addr[1])
  
  s.close()
  </code></pre>
  
  <p>I can set the server up and it will listen on socket, but when i try to connect with telnet, it times out. Since I'm on a network in my college, could this be the reason why things aren't going through? I remember doing something like this in C a while back and it seemed to work then...</p>