|
Re: How do I find my own IP address?: msg#00268lang.erlang.general
> > > 2>prim_inet:ifget(S, "eth0", [addr]). > > > {ok,[{addr,{192,168,100,100}}]} > > > > This will work on a vanilla Unix system. > > Not even there (depending on your interpretation of 'vanilla Unix') - > the BSD's have not traditionally had interfaces named eth*. They're > named after the specific devices (ed*, rl*, dc*, etc) instead. Please. We're talking "how do I know what's my IP", that of course means "how do I know what's this interface's IP". If one doesn't even know which interface, then just list them first. ObOfftopic: traditionally, AIX systems have had two interfaces (en* and ent* IIRC) for each physical NIC: one of them behaves as an Ethernet card and the other as IEEE 802.3. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: How do I find my own IP address?: 00268, Luke Gorrie |
|---|---|
| Next by Date: | Re: ANNOUNCE ex11 release two: 00268, Shawn Pearce |
| Previous by Thread: | Re: How do I find my own IP address?i: 00268, Chris Pressey |
| Next by Thread: | Re: How do I find my own IP address?: 00268, Matthias Lang |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |