Lag when looking up localhost

BlitzMax Forums/BlitzMax Programming/Lag when looking up localhost

skidracer(Posted 2007) [#1]
Anyone else suffer some horrid delays (> 20 seconds for me) with the following, (xp users apparently have mshome.net built in???)

Strict

Local hostiplist:Int[]=HostIps("")'"localhost")

For Local ip=EachIn hostiplist
	Print "host found:"+HostName(ip)+" at "+DottedIP(ip)
Next



Brucey(Posted 2007) [#2]
Pretty much instant on Win2k and OS X.
Although on Mac the empty string returns nothing. ("localhost" works).


N(Posted 2007) [#3]
Takes me about 1-2 milliseconds.


Dreamora(Posted 2007) [#4]
Same here

sure you don't have some kind of software firewall or the like which lags this stuff out?


LarsG(Posted 2007) [#5]
pretty much instant on the work laptop (win XP).


skidracer(Posted 2007) [#6]
Thanks guys!

I would far prefer the problem is my end which it looks safe to assume.


xlsior(Posted 2007) [#7]
It takes about 10 seconds on my computer: XP Pro, Core 2 Duo E6600.

These are the results:

host found: at 0.1.0.6
host found:xlsior at 192.168.1.2
host found:XLSIOR at 192.168.206.1
host found:XLSIOR at 192.168.133.1

Now, the first one is an interface labeled "Microsoft TV/Video Connection" -- I don't think it showed up until I plugged something into my front IEEE1394 firewire port, so it's not a true network adapter.

My 'real' network card is the second one, with IP 192.168.1.2

The other two are VMWare virtual network interfaces...

The frist two results show up simultaneously after about 7 seconds, and 3 seconds later the remaining two show up. It might be that the networking system is getting confused about the Tv/Video connection adapter?


xlsior(Posted 2008) [#8]
Just came across this one again -- it seems even worse now.

for some reason my firewire adapter is no longer listed (which is good), but now I get the following:

The first two lookups are instant:
host found:xlsior.xlsior at 192.168.1.97
host found:xlsior at 192.168.1.2

(Two active NICs, which is correct)

Then there is a ~20-second delay:
host found:XLSIOR at 192.168.206.1

And another ~20 second delay:
host found:XLSIOR at 192.168.133.1


So all in all it takes me ~40 seconds to get the full list, which is pretty dismal.

(All four addresses are active and pingable)


GfK(Posted 2008) [#9]
A bit late to the party, but its instant on my laptop (Vista Home Premium).


Perturbatio(Posted 2008) [#10]
instant for me too


Dreamora(Posted 2008) [#11]
One thing I should mention: I've disabled most of the "automatic network stuff" of XP. This means no automatic search for network resources /drives available and the like.