Project

General

Profile

hosts file windows XP

Added by Arne Moeller over 8 years ago

Dear Anchi and all

I am currently working on finishing the leginon installation but encountered a major problem with the network.
Specifically with the hosts file in windows xp professional.

Leginon does not work if one can only ping by IP address but requires that one can also ping by hostname - which is specified in the hosts file.
Now the funny thing is that I can ping all computers by IP address from all other computers but only the K2 computer by hostname from the Scope computer - not the leginon computer (the other two computers are working fine). For some reason I cannot modify the host file effectively any more - when I delete for example the hostname of the K2 it is still pingable by name and if I modify the ip address nothing happens as well.

I talked to Juan (our IT guy) and he thinks that the best solution would be to reboot the scope PC - of course this would come with quite some extra work and is not ideal.

Juan found a solution which would require installing a small piece of software on the scope PC (it is SOPHOS checked fine) - but I to me this is also not ideal.

we are investigating other possibilities - so far no luck.

Have you encountered this before?

cheers
Arne


Replies (2)

RE: hosts file windows XP - Added by Anchi Cheng over 8 years ago

First, are these local ip addresses?

Second, when a computer has multiple cards, there is one that it recognized as primary. You can find it out by asking what IP address it gets when look up by name in python command line

import socket
n=socket.gethostname()
socket.gethostbyname(n)

You can enter other host names to see if it translates in the way you expect. Python socket module only recognizes the primary one. Therefore if the network card you hook up in between is not the one, then it is a problem.
Primary address change is not easy. I have only found it necessary once , and it took awhile for us to get it right. I hope it is not your case.
Third, there is a possibility that scope PC is using the address or address range for another internal computer. You should find it out by

address = '192.xxx.xxx.xx'
socket.gethostbyaddr(address)

RE: hosts file windows XP - Added by Arne Moeller over 8 years ago

Dear Anchi,

thanks for the suggestions - unfortunately on this end everything was working well.
We ended up rebooting the computer and after that we deleted the host file from the folder and recreated it with administrator rights -
Other option like flushing the DNS (ipconfig \dnsflush) did not work.

I guess the computer was stuck in one way or the other

cheers

Arne

    (1-2/2)