HolidayBuyer's Guide

Networking & Wireless forum

General discussion

Accessing local http server by name instead of local ip

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

Hi
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.

WINDOWS HOSTS FILE

Bob

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.
Bob

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

HOLIDAY GIFT GUIDE 2017

Cameras that make great holiday gifts

Let them start the new year with a step up in photo and video quality from a phone.