×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    11

    Can I get the local address from the stripped-down socket lib?

    Trying to implement a client for a protocol that includes the client-side IPV4 address in a UDP packet. (No, the protocol doesn't work from behind a NAT :-) No socket.gethostname, no socket.getpeername (which wouldn't help because it's not a connected socket anyway)... nothing obvious in e32socket... suggestions?

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    11
    (For now, I've kludged it to urllib.open.read a remote web page that just returns the client address as a string; for the simple case, this would work with NAT'ed addresses too, since all that matters is the address "presented" to the outside world, but isn't quite what I'm looking for.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×