Can you telnet to www.google.com:80 from the phone? That would confirm that TCP is working fine. Maybe you or your provider are not allowing ICMP packets (it is a cellphone, after all) which would prevent ping from working.
The code looks fine after a quick skim, assuming it compiles. I have not tested it, but just as a tip, you might want to try copying to pastebin.com or something and linking us there. Its hard to read without indenting =)
Does your program give you ANY output at all? if you are not even getting the 'Create Socket' error, then your problems probably lie elsewhere. How are you compiling it? Does it work on an i386 linux system?



Reply With Quote