Reputation: 1166
I am a beginner of developing an ASP MVC 4 application. I have my application deployed on my server, but I wanted to assign a domain name on it. Is it possible?
I currently deployed it as with ip address when accessing the application. eg: 141.201.0.235:81 in port 81
But I wanted it as something like http://www.MyApp.com
Upvotes: 0
Views: 200
Reputation: 2590
To be reachable via a domain name for real, you'll need to buy a domain name from a Domain Name Registrar, which requires an annual fee.
Then, using a DNS hosting service or your own DNS server, you'll need to direct www.[yourdomainhere].com and [yourdomainhere].com to the public facing IP address of your web server running your web application.
If it's the only application on the machine with minimal configuration, it'll need to run on port 80. However, most web servers including IIS can be configured to recognize what domain name the traffic is coming from and redirect from port 80 to whatever port your web application is actually running on.
Upvotes: 1