import socket

s = socket.socket()
print "Socket successfully created"

port = 12345

s.bind(('', port))
print ("socket binded to %s" %(port) )

s.listen(5)
print "socket is listening"

while True:
   c, addr = s.accept()
   print ('Got connection from', addr)
   c.send('1212')
   c.close()

   #inaddr_any()
