[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get ip from server



Hi!

Le dim 20/04/2003 à 07:10, Peter Zelezny a écrit :
> On Sat, 19 Apr 2003 23:07:07 -0400
> "James LiGate" <Escape@usa.net> wrote:
> 
> > For example, if I were +x under Unreal, for myself I would see:
> > 
> > James is ~escape@ascends-250B54E4.tnt1.richmond.va.da.uu.net * James LiGate
> > James is connecting from *@1Cust236.tnt1.richmond.va.da.uu.net
> 
> 
> We can't just flip 'Get hostname from server' ON as it stands, because:
> 
> * xchat doesn't support this "connecting from xxxx" line. Is that a new
>   non-rfc numeric?
> * The current implementation uses a blocking DNS lookup. It was assumed
>   most people wouldn't use it, so the few who do have to put up with the
>   pain of a quick lockup.
> * I think most people have a "proper" routable IP address and don't want
>   this ON.
> 
> Turning it ON in the case of a 192.168.*.* or 10.*.*.* primary address is
> reasonable, if someone wants to whip up a patch to do that.
> 

As per RFC 1918 ( http://www.ietf.org/rfc/rfc1918.txt ):

     10.0.0.0        -   10.255.255.255  (10/8 prefix)
     172.16.0.0      -   172.31.255.255  (172.16/12 prefix)
     192.168.0.0     -   192.168.255.255 (192.168/16 prefix)

Anyway, as far as I'm concerned, I have this option unchecked even when
I'm on such a private address (well yes there is a bouncer somwhere that
needs to know the real private address), so a tri-state "off-auto-on"
would be OK to me.

But from my very own mileage, most people that are on private address
don't have a well configured linux machine (and these are plain capable
of using the proper option in XChat). Most tend to have dumb "home
routers" for which I stopped trying to give advice as far as connection
forwarding goes. If the cnx is not going to be forwarded, then there is
no point in getting the real world IP. So maybe just printing a warning
line somewhere when connecting to the server "The IP I'm going to use
for DCC is non routable. If you have trouble with DCCs from your box,
try the 'GET my IP from IRC server' option." would be enough.

Only my 0.02eurocent :-))

Sebastien


--
XChat-discuss: mailing list for XChat users
Archive:       http://mail.nl.linux.org/xchat-discuss/