Sockets UDP-TCP in iOS

Hi,

This function

function myIP()
    mysocket = socket.udp()                   
    ip_LOCAL = “”                              
    puerto_local = “1234”                      
    mysocket:setpeername(ip_LOCAL,puerto_local)
    mysocket:settimeout(0)
    ip_LOCAL, sock = mysocket:getsockname()
    mysocket:close()
  end

work fine in coronalabs windows and ip_LOCAL retrive the local IP, but in Apple corona ( 2016.2846 ) return ip_LOCAL = 0 ¿?

Can help me?