FROM : ?????? ??????
DATE : Thu Dec 30 17:32:48 2004
Hi
I'm trying to get the IP-address of the local machine by means of NSSocketPort.
I'm calling initWithTCPPort: with 0 for a port number. The documentation says it cause the system to select the port at random. Also, it claims that this method initializes a local TCP/IP socket.
But when I try to retrieve the IP-address (with [.. address]) from the initialized this way object, what I have is 0. At the same time the port number is valid.
Do I miss something?
Maybe there is some esier way to get the IP?
Thanks in advance.
Vic.
DATE : Thu Dec 30 17:32:48 2004
Hi
I'm trying to get the IP-address of the local machine by means of NSSocketPort.
I'm calling initWithTCPPort: with 0 for a port number. The documentation says it cause the system to select the port at random. Also, it claims that this method initializes a local TCP/IP socket.
But when I try to retrieve the IP-address (with [.. address]) from the initialized this way object, what I have is 0. At the same time the port number is valid.
Do I miss something?
Maybe there is some esier way to get the IP?
Thanks in advance.
Vic.
| Related mails | Author | Date |
|---|---|---|
| ?????? ?????? | Dec 30, 17:32 | |
| Alex v.Below | Dec 30, 18:03 | |
| Boaz Stuller | Dec 30, 18:53 | |
| ?????? ?????? | Dec 31, 10:09 | |
| Bob Ippolito | Dec 31, 10:29 | |
| Clark Cox | Dec 31, 20:39 |






Cocoa mail archive

