Try; { char ipr[] = "205.206.248.72" ; struct sockaddr_in myadr; memset(&myadr, 0, sizeof(myaddr)); myadr.sin_family = AF_INET; myadr.sin_port = ???; /* You need to specify the port */ inet_aton(ipr, &myadr.sin_addr); r= bind(s, (struct sockaddr *) &myadr, sizeof(myadr)); } christos