mIRC Home    About    Download    Register    News    Help

Print Thread
Retrieving ip's using /links and raw 364 ? #115710 29/03/05 01:24 AM
Joined: Nov 2003
Posts: 257
A
alkahol1k Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
I need a way of returning the ip of every server connected to a network. I have a feeling it can't be done but I'd like to find some way of knowing the fastest server on the network to connect to. It would help on laggy networks like undernet and a little bit on smaller ones. Anyone know ?

Re: Retrieving ip's using /links and raw 364 ? #115711 29/03/05 02:02 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
Raw 364:*: { .dns $3  }

on 1:DNS: {
  if (!$raddress) { return }
  var %x = $dns(0)
  while (%x) {
    echo 3 -s $+($dns(%x),'s) IP is $raddress
    dec %x
  }
}



slimey.uk.eu.dal.net's IP is 194.68.45.50
rumble.fl.us.dal.net's IP is 194.14.236.50
redemption.ix.us.dal.net's IP is 194.68.45.50
powertech.no.eu.dal.net's IP is 195.159.0.91
novel.ix.us.dal.net's IP is 194.68.45.50
mozilla.se.eu.dal.net's IP is 194.68.45.50
mesra.kl.my.dal.net's IP is 61.6.39.100
matrix.de.eu.dal.net's IP is 195.50.191.14
masters.ix.us.dal.net's IP is 194.68.45.50
loyalty.ix.us.dal.net's IP is 194.68.45.50
jingo.ix.us.dal.net's IP is 194.68.45.50
jade.va.us.dal.net's IP is 194.14.236.50
irc.dal.net's IP is 194.68.45.50
hotspeed.sg.as.dal.net's IP is 194.68.45.50
hotspeed.sg.as.dal.net's IP is 194.68.45.50
broadway.ny.us.dal.net's IP is 194.68.45.50
arcor.de.eu.dal.net's IP is 195.50.191.12


I tried putting it inside a group but it wouldn't disable the group from Raw 365.

Hope that helps.

All the best.

-Andy.

Re: Retrieving ip's using /links and raw 364 ? #115712 29/03/05 02:17 AM
Joined: Nov 2003
Posts: 257
A
alkahol1k Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
That helps alot I'll work with this and see what I can do. Thanks alot for your help smile

Any idea how I change what order they appear in, it seems to be alphabetically right now.

Last edited by alkahol1k; 29/03/05 02:18 AM.