|
osdir.com mailing list archive F.A.Q. -since 2001! |
|
|
|
Subject: Re: How do I find my own IP address? - msg#00274List: lang.erlang.general
by Date: Prev Next Date Index by Thread: Prev Next Thread Index
> > 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. > > IEEE 802.3 _is_ Ethernet. Maybe you meant IEEE 802.5 (Token ring). No. IEEE 802.3 is _almost_ Ethernet, thus the AIX comment. See offset 12 in an Ethernet frame (frame type) vs. offset 12 in a 802.3 frame (frame length). AIX chooses one or the other according to the interface you use, and both can be used in the same card. AFAIK no physical medium defined for token ring can be used for ethernet. so the above wouldn't apply at all. Regards, Miguel
Thread at a glance:
Previous Message by Date:Problems on Mac OS X 10.3Dear Erlang folk, I have problems using the erl_interface functions on Panther. With the binary version by Sean, the files libei.a or liberl_interface.a contain a version of strerror_r, which prevents linking as the function also appears in the system libraries. I also tried to compile the current source release. After overcomming the build problem (thanks for the Makefile patch), I'm sad to report that the c-node example from the documentation does not work. When I increase the ei_tracelevel, cnode_s.c I get the follwing output: ------------------------------ ei_epmd_r4_publish: Fri Jan 23 10:13:27 2004: -> ALIVE2_REQ alive=c1 port=3456 ntype=72 proto=0 dist-high=5 dist-low=1 ei_epmd_r4_publish: Fri Jan 23 10:13:27 2004: <- ALIVE2_RESP ei_epmd_r4_publish: Fri Jan 23 10:13:27 2004: result=0 (ok) creation=3 ei_accept: Fri Jan 23 10:13:27 2004: <- ACCEPT waiting for connection ei_accept: Fri Jan 23 10:15:06 2004: <- ACCEPT connected to remote recv_name: Fri Jan 23 10:15:06 2004: <- RECV_NAME (ok) node = e1@faui878, version = 5, flags = 255 send_status: Fri Jan 23 10:15:06 2004: -> SEND_STATUS (ok) send_name_or_challenge: Fri Jan 23 10:15:06 2004: -> SEND_CHALLENGE (ok) challenge = 1436310268, version = 5, nodename = c1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx recv_challenge_reply: Fri Jan 23 10:15:07 2004: <- RECV_CHALLENGE_REPLY socket read failed (-1) ei_accept: Fri Jan 23 10:15:07 2004: <- ACCEPT failed erl_accept ----------------------------- could it be a problem with the cookie? Thank you, Stefan Next Message by Date:[ex11] use of DisplayHi Joe, A silly question this time: I think I am too tired this Friday afternoon. :-) If I run something like Display=sw:start("3.1"), Win = swTopLevel:make(Display, 160, 50, 16#ffffcc), Win2 = swTopLevel:make(Display, 260, 50, 16#ffffcc), then closing any of the windows will close both of them. Is it supposed to be so? If yes, does it mean that the only one top-level window should be created per Display? It seems not so comfortable... regards, Vlad Previous Message by Thread:Re: How do I find my own IP address?Vlad Dumitrescu <vlad_dumitrescu@xxxxxxxxxxx> wrote: > I couldn't connect with ex11 to the X server, and I think I found the cause. > If > $DISPLAY refers to localhost or 127.0.0.1, then ex11 first resolves the local > host name, which is then used to look for a cookie. > > This means that it isn't enough to have a xauth cookie for localhost:0 or > 127.0.0.1:0, but it needs one for "inet:gethostname()":0. Which isn't quite > proper, I think. I think this is my bug Vlad, so don't blame Joe for it. His second release has my smart connection patch, which I apparently made a few wrong assumptions in. I think you are right, if $DISPLAY directly contains 127.0.0.1 or localhost, or has the empty string, inet:gethostname() should only be used as one of the possible names during the xauth cookie search, but the actual connection should be to 127.0.0.1. -- Shawn. Break into jail and claim police brutality. Next Message by Thread:RE: How do I find my own IP address?<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
blog comments powered by Disqus
|
|