Skip navigation.
 
mlGetting th IP-address of my own machine
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.

Related mailsAuthorDate
mlGetting th IP-address of my own machine ?????? ?????? Dec 30, 17:32
mlRe: Getting th IP-address of my own machine Alex v.Below Dec 30, 18:03
mlRe: Getting th IP-address of my own machine Boaz Stuller Dec 30, 18:53
mlRe[2]: Getting the IP-address of my own machine ?????? ?????? Dec 31, 10:09
mlRe: Getting th IP-address of my own machine Bob Ippolito Dec 31, 10:29
mlRe: Re[2]: Getting the IP-address of my own machine Clark Cox Dec 31, 20:39