Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using xammp on windows. I change my port number as 8090 but now I couldnt reach the localhost when I type to the browser. What should I do to make any name to open my localhost even if the port is not 80. Or moreover I

Thank in advance,

share|improve this question

closed as not a real question by Iain, Tom O'Connor, womble, jscott, Ben Pilbrow Aug 14 '11 at 12:17

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

You can't, you have to expressly state the changed port at the client end.

DNS is purely for IP resolution, it doesn't deal with port numbers at all, that's a client-side assumption that's built into your various client applications.

So for instance you'd use your browser to point to - there's no other way for the client to know that you've changed the port.

By the way, please read our FAQ, this site's for professional sysadmins, be aware of our sister site which is perhaps more appropriate for very basic general questions such as this.

share|improve this answer
"DNS is purely for IP resolution, it doesn't deal with port numbers at all" -- at the risk of confusing the OP, I feel obligated to mention SRV records... – womble Aug 14 '11 at 9:43
Great point but I'm assuming he's moved his apache port and right now SRV is kind of limited by use (SIP/LDAP etc.) – Chopper3 Aug 14 '11 at 11:10
I wouldn't want anyone who comes across this answer in the future to get the wrong idea. – womble Aug 14 '11 at 21:10

You can't.

If you don't provide a port number in your web browser, it'll automatically use the well-known ports for HTTP (80/tcp) or HTTPS (443/tcp), depending on the URI you've entered.

If you don't use the well-known ports for your web server you'll have to enter them explicitly.

share|improve this answer

It is absolutely unclear what you are asking!

If you set your Apache to listen on 8090 then it listens on that port (and probably not on any other). So you have to put or http://localhost:8090 in your webbrowser.

When you now put a line as localhost

in your hosts file, then you can reach your site with, too.

But you always have to specify the port. Otherwise it won't work!

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.