Using SLPReg I'd like to register

service:TrackingNode.CP://192.168.0.100:1234

where the IP address should actually be the the local IP address of my 
NIC. This sounds to me like a common problem when using SLP, but I 
haven't found a solution yet.

The problem is that I haven't found a nice and portable way to discover 
the local IP address (using gethostname and gethostbyname is ugly and 
Windows specific, for example).

What is the common practice to register a service using the current IP 
address?

Best regards
Robert


------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Openslp-users mailing list
Openslp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openslp-users

Reply via email to