Changed server code to the following,
from socket import *
HOST = ''
PORT = 8080
serversocket = socket(AF_INET,SOCK_STREAM)
serversocket.bind((HOST,PORT))
serversocket.listen(5)
while True:
(clientsocket, address) = serversocket.accept()
print ("Got client request from",address)
clien
On Sunday, March 29, 2015 at 3:44:43 PM UTC+5:30, mm0fmf wrote:
> On 29/03/2015 09:57, bobbydeep wrote:
>
> From the error (10060) it looks like Windows but it would be nice if
> you could say which Python and OS you were using.
>
> I haven't looked at your code but just taking at face value th
On Sunday, March 29, 2015 at 2:27:59 PM UTC+5:30, bobbdeep wrote:
> I am trying to communicate between a server and client using TCP sockets.
>
> Server code:
>
> import socket
> import sys
>
> # Create a TCP/IP socket
> sock = socket.socket(socket.
I am using TCP sockets to communicate between my server and clients. The server
code and socket code are as below:
server:
from socket import *
HOST = 'xx.xx.xx.xx'
PORT = 1999
serversocket = socket(AF_INET,SOCK_STREAM)
serversocket.bind((HOST,PORT))
print 'bind success'
serversocket.listen(5)