[REBOL] Re: How to get allocated ip number
From: gscottjones:mchsi at: 16-Oct-2002 6:58
> GSJ> interface may not be consistent across platforms. If no one "knows"
> GSJ> answer to this question, then a little feedback will quickly resolve
From: "Gabriele Santilli"
> I don't know if I understood the question correctly, but it is
> possible to discover the address you are using when you connect to
> something with:
> port: open tcp://www.rebol.com:80
> print port/local-ip
> close port
My ill-formed question concerned a slightly different area; although, I
suspect that your answer may also be helpful to Michel.
What I am curious about is the two letter code that preceeds the interface
I suspect that RT decided to give a two letter code to each type of tcp
lo = local (or loopback)
ppp = point to point protocol
if = ???
Given this, then my more fully articulated questions are:
1) Is there a place where these codes are documented?
2) Are ther other ones besides what I have listed above?
3) Do these codes differ on different platforms (even for seemingly the
same class of tcp interface)?
If there is solid information somewhere about this coding convention, then
Michel may be able to develop a generic approach to deciding what ip belongs
to which tcp interface. Otherwise, I am guessing that your trick documented
above is the easiest solution.
I fear I still not be adequately articulating my question(s), but the
question was more expressing curiousity over the schema that RT chose.
Thanks, Gabriele, for the nifty trick to see which ip is being used for a