|
RE: How do I find my own IP address?: msg#00228lang.erlang.general
<snip> >> 2> inet:gethostbyname("enfield"). >> >> {ok,{hostent,"localhost.localdomain", >> ["localhost","enfield"], >> inet, >> 4, >> [{127,0,0,1}]}} >> >> But 127.0.0.1 is not my IP address >> <snip> >before using undocumented functions i would suggest a close >look at the >configuration of your computer. the #hostent{} claims your canonical >name is "localhost.localdomain". this does not sound correct. >what does your /etc/hosts say? Actually, the default hostname for RedHat Linux Workstation (others may vary) has been "localhost.localdomain" for as long as I've been using it (5 years now). Also, the actual IP address of a workstation may vary according to the information available at startup, especially if DHCP is selected. If no network connection is available, then it would not suprise me if DHCP gave you 127.0.0.1 as your IP address. > >bengt > Simon |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: How do I find my own IP address?: 00228, Bengt Kleberg |
|---|---|
| Next by Date: | Re: ANNOUNCE - graphics package: 00228, Joachim Durchholz |
| Previous by Thread: | Re: How do I find my own IP address?i: 00228, Miguel Barreiro |
| Next by Thread: | Re: How do I find my own IP address?: 00228, Samuel Rivas |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |