Hi daniel,
thanks for your information. I got solution for this.
client_sock = accept(conn_sock, NULL, NULL);
instead of this i tried
client_sock= accept(conn_sock, &remote_sin, &remote_addrlen);
printf("\nConnection accepted from %lx, port %d",
remote_sin.sin_addr, remote_sin.sin_port);
regards,
sudhakar p