QUOTE (El_Hobito @ Jan 12 2006, 02:29 PM)
i've done all that though i sent it to 192.168.2.101 (my comp ip) which is the destip on port 8888 but i get nothing. hmmm i might try send it through the internet see where that gets me.
i've tried everything i can think of but it wont work, i dont get it? i've basically have copied and pasted the original and this code but it wont work
its says dest ip :192.168.2.101 (my comp)
source 192.168.1.189 (ds)
port : 8888
but i get no response
if(Stylus.Held) {
if(Stylus.X>208 && (Stylus.Y>144)){
strcpy(sendbuf,text);
sain.sin_family=AF_INET;
sain.sin_port=htons(portnum);
sain.sin_addr.s_addr=destip;
sendto(sock,"test",strlen("test"),0,(struct sockaddr *)&sain,sizeof(sain));
}
that pretty much a copy of sgstairs version but i've hardcoded a message in this case.(it was using a typed version b4)
i noticed that yours says out and stevens says in which is odd but i swapped them and it made no difference.