Not an Open Socket - While Checking for Internet

debdoot das dev at digifilm.com
Sat Sep 24 23:01:32 EDT 2011


Hi All,

This script returns the IP address on the computer but on iphone simulator it returns "not an open socket." 

Anyway to make this work?

on mouseUp
   put "255.255.255.255:44444" into mySock
  open datagram socket to mySock
  put hostAddress(mySock) into myIP1
  close socket mySock
  if myIP1 is "127.0.0.1" then
       put "Connection not successful" into cd fld "updates"
	put myIP1 into cd fld "updates2"
   else
      put "Connection successful" into cd fld "updates"
      put myIP1 into cd fld "updates2"
  end if
end mouseUp

Thanks,
Debdoot




More information about the use-livecode mailing list