Computing.Net > Forums > Networking > resolving hostname on same network

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

resolving hostname on same network

Reply to Message Icon

Name: Jim (by LiceAtk)
Date: March 7, 2009 at 13:21:22 Pacific
OS: Microsoft Windows XP Professional
CPU/Ram: 2.657 GHz / 766 MB
Product: Dell / DIMENSION 2400
Subcategory: General
Comment:

I don't know much about networking

right now I have 2 computers on the same network, both working fine, with internet access. They can ping eachother. I have webservers setup on both, *but* they can only access eachother using their numerical IP addresses. Hostnames do not work. For example, I can only get access by browsing to "http://192.168.1.101". going to "http://jimpc1/" will not work. This is the same for both PCs.

also when i do a "ping -a" in DOS, it doesn't resolve the hostname, it just shows me the numerical IP.

am I missing something?

connection setup is: PC > Wireless Broadband Router > Westell DSL Modem > Internet.
one pc is desktop/cable, other is laptop/wireless. both have brand new installs of xp pro SP3

-Jim



Sponsored Link
Ads by Google

Response Number 1
Name: paulsep
Date: March 7, 2009 at 13:51:21 Pacific
Reply:

In a so small environment I would suggest to simply add the ip address and the hostname to your local hosts file.

The file hosts is located in \windows\system32\drivers\etc.
It's the hosts file without extension.

Let's assume that the first pc's hostname is jirnpc1 with ip address 192.168.1.101 and second pc's hostname is jirnpc2 with ip address 192.168.1.102.

Edit the file hosts at jirnpc1 and add the following line:
192.168.1.102 jimpc2

Save the file and exit the text editor.

Edit the file hosts at jirnpc2 and add the following line:
192.168.1.101 jimpc1

Save the file and exit the text editor.

And now, try to ping jirnpc1 from jirnpc2 and vice versa.

Please send a reply, if you solved the problem !!!


0

Response Number 2
Name: andynet
Date: March 7, 2009 at 14:10:35 Pacific
Reply:

Paul what other optios do you have here, if yor using apache web server you can add virtual hosts iif i remember right, so what other options do you have for a peer - to -peer setup?


0

Response Number 3
Name: paulsep
Date: March 7, 2009 at 14:42:38 Pacific
Reply:

In that case, you have to use a DNS server, that can be configured.
So the clients have to be configured to use this DNS server, to be able to resolve the names properly.

Please send a reply, if you solved the problem !!!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Networking Forum Home


Sponsored links

Ads by Google


Results for: resolving hostname on same network

Resolve hostnames on home network www.computing.net/answers/networking/resolve-hostnames-on-home-network/36407.html

Cable and DSL on same network www.computing.net/answers/networking/cable-and-dsl-on-same-network/21333.html

Windows2000 & Windows98 on same Network www.computing.net/answers/networking/windows2000-amp-windows98-on-same-network/4048.html