Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi!
I havbe 2 computers on a network one running xp hom and the other xp pro
I would lke o be able to have each computer have like a name instead of ip.
Neither computer is on the internet its just an offline network
I have one setup as like a webserver for the network and i would also like to have a name to acess it rather than ahving to type in the ip of the server computer.
Hope somebody can help
Darren

You can't 'not have an IP', but you can set it so that you can use the name instead of the IP.
Edit this file:
WINNT/System32/drivers/etc/hosts
Put in entries like this for each computer:192.168.1.53 computername1
192.168.1.55 computername2I believe that is all that you need. You should be able to use the name instead of the IP in most cases.

I thought i need some sort of DNS or something.
Whawt about the webserver. I want to be able to acces that on the other computer on teh netwrok by typing in say something.com
Darren

On WinNT & WinXP, the file is at:
C:\WINNT\System32\drivers\etc\hosts
On Win98, I believe that it's at:C:\Windows\System32\drivers\etc\hosts
On UNIX/Linux systems, it's at:/etc/hosts

Please post your own thread next time, easier to find =)
XP does not create winnt dir, just windows.
Regardless of version.
HTH,
J.
j e r u v y a t y a h o o d o t c o m

use the search feature that some propeller head spent years on. you can find hosts file wherever it is.
hosts file is dns lite. (sort of), lol

I don't believe the above information is correct.
You do not want to use a Hosts file but the LMHoSTS file in the Microsoft world. You will find an example lmhosts.sam in C:\Windows\System32\drivers\etc for XP.
The trick here is after you have created the lmhosts [with NO extension] file you have to IMPORT it. You do this by going to tcp/ip properties/advanced/wins tab.
The check box is already checked for import lmhosts file. You have to click on the import LMHOSTS and browse to the etc folder and highlight the lmhosts file you created.
reboot
NOW YOU CAN PING/RESOLVE BY NAME.

????
when you install XP you are asked to give it a name
mines called HOUSEPC
i can do a 'ping HOUSEPC' and have it work like i entered the IP...
you can assign a name by going to control panel, system

Jamie -
You're right. Normally that works, but sometimes can screw up. To be sure netbios names (which is what most of us are talking about) work, you should use the lmhosts.txt referred to here in the thread, or make a WINS server, which is probably stupid in this scenario.
DNS is resolving names within a domain based network. Don't think you want to go that far.
MCSE, MCSA Messaging, baby!

Is it possible to set a network with a network server on a domain without internet acces adn for free?
Darren

Absolutely. You simply need to setup a DNS server if you're wanting to resolve ip address using DNS names. Windows 2000/2003 Server have DNS built in, as well as WinXP Pro, although WinXP wasn't made to do such a thing specifically particularly in large scale networks.
You could also through together a linux DNS server out of junk parts.
Just some thoughts.
Paying for a domain name is simply registering with internic that www.whatever.com = your net ip address on the global network known as the internet. No one can stop you from forming a domain named even yahoo.com if it's not net connected. It's YOUR atonomous network. IP and DNS don't care if they're on a small LAN or a global internet WAN. It still works the same.
Warning: If you choose a domain name in a Windows Active Directory LAN network, and then change your domain later because you want to be on the internet, much pain will be in your future.
MCSE, MCSA Messaging, baby!

Jamie McCoy it is easy to resolve a local name to ip since that is cached locally. Where the problem comes in is resolving a name across the network. Especially if netbios is not enabled to be transported via tcp/ip. This is where the lmhosts file comes in.
I believe a lmhosts file to be far superior to using Wins. This is due to the fact that the lmhosts, when imported, caches all the information in the lmhosts file locally. So all name to ip and ip to name requests are handled at the local station and NEVER make it to the wire for resolution. Since I only do client server and not peer to peer this means all name resolution is not done thru broadcasts but by local cache.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |