Attention: The forums are currently placed on Read Only.

Thank you for visiting the CNET forums. Our site is currently undergoing some maintenance. During this period (6:30 AM to 8 PM PDT,) you can read the forums content, however posting in the forum will not be available. We apologize for this inconvenience. Click here to read details

Networking & Wireless forum

General discussion

Accessing local http server by name instead of local ip

by hatemak / November 19, 2010 9:22 PM PST

I have few computers connected to my router + an iphone
I am running an http server on one of the computers
I can access my pages on that computer using the local ip, but I am looking for a way to do it using a name instead

I tried to assign that computer a name and a static ip on the router, but that did not do anything. I also put a dns server on that computer, then change the dns number on my router, but that did not work also.

Any suggestions?

Discussion is locked
You are posting a reply to: Accessing local http server by name instead of local ip
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Accessing local http server by name instead of local ip
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
For your research.
by R. Proffitt Forum moderator / November 20, 2010 12:38 AM PST

I'd use a HOSTS file. To learn about this, and I'm guessing the machines use Windows here are the words for google.



Collapse -
Tried that, still does not work
by hatemak / November 21, 2010 8:56 PM PST
In reply to: For your research.

After installing the dns server on the computer that hosts the http server, I tested the new domainname, and it worked fine from any browser that I open on that computer. But not from any other computer or iphone. I have to put the localip address to access the webpages on that computer (that hosts the http server and the dns server). On my router the primary dns server is that computer
Then I put the domainname in the hosts file. Still the same problem.

Collapse -
Which is how a hosts file should work.
by R. Proffitt Forum moderator / November 22, 2010 6:58 AM PST

If you want to use some nameserver then more work is involved such as configuring the DHCP server to hand out that DNS. Sorry if I stop here as if I wrote more I'd be duplication a lot of web pages.

Popular Forums

Computer Newbies 10,686 discussions
Computer Help 54,365 discussions
Laptops 21,181 discussions
Networking & Wireless 16,313 discussions
Phones 17,137 discussions
Security 31,287 discussions
TVs & Home Theaters 22,101 discussions
Windows 7 8,164 discussions
Windows 10 2,657 discussions


Your favorite shows are back!

Don’t miss your dramas, sitcoms and reality shows. Find out when and where they’re airing!