IIS redirect custom DNS "" to another port on a dedicated server

Posted on 2010-09-22
Last Modified: 2013-11-30
Hi, I've a dedicated server (Windows 2008 R2) with a my application that wait incoming connection on a port like 1234.
I need to redirect a specified url (I've configured the DNS) to same IP but on a different port, without specific the
Can I do that?
Question by:ISIGest
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

by:Gianpiero Rossi
ID: 33732451
if you don't specify the port it will assume you are using the 80.
if you want to do something dynamicalli you can set up a custom page that make the redirect following the condiction that you want

Author Comment

ID: 33732820
I want to redirect an url to specified port but the url in the browser must be without the port.
Can you tell me how I can do it with a custom page?
LVL 30

Expert Comment

by:Brad Howe
ID: 33735404
Yes, you can use IIS URL Rewrite with a Proxy rule OR correctly set the IIS Bindings and change the port to 80.
Based on the question you have
And want to show content of
What are you trying to accomplish?
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users


Author Comment

ID: 33735891
Yes, but on my server there is a windows service that listening on 1234 port and not a website:
I want an url point to internal port of my dedicated webserver on same pc.
LVL 30

Expert Comment

by:Brad Howe
ID: 33735987
So you want a DNS record to point to a Windows Service port?
EG: MSSQL on 1433. I create a DNS for and I want to connect to that database without hte port 1433 specified?
This is not possible.

Author Comment

ID: 33736063
So like that....
It's not possible??
LVL 30

Expert Comment

by:Brad Howe
ID: 33736178
Well, yes if what i think you are asking.
Does this load a web service or site?
Does this load a web service or site? 
Is this site use Apache/J2EE etc webserver? If so, the the URL Rewrite Module is what you need to create the proxy.
Let us know, Hades666

Author Comment

ID: 33741566 is a webservice and I use Windows 2008 R2 with IIS 7.
This is a dedicated machine for my website.
LVL 30

Expert Comment

by:Brad Howe
ID: 33742791
Yes, so it is a WEBSERVICE. Which means it runs on IIS as a Virtual Host.  So, if you open IIs Manager do you see 2 Virtual Hosts?
1. SITE1 -
2. SITE2 -
Please provide a screenshot of your IIS manager virtual host setup and bindings.

Author Comment

ID: 33745850
I've a Dedicated Web SERVER

Accepted Solution

GeneralTackett earned 500 total points
ID: 33746810
you can do this ..
in the index/default.htm page

<META http-equiv="refresh" content="0; URL=">

or write an ISAPI filter

or set the port number of the website to 1234 in IIS management console for that web site

or enable custom headers and do it there .. Dont remember the procedure.. but it allows multiple sites to share the same ip.  

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Create VM to talk to device connecting to PC 2 54
Setting up two DCs 4 47
Change subnet - effects on server 14 44
Sonicpoint ACi and PoE switch 3 6
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Internet Business Fax to Email Made Easy - With  eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question