Link to home
Start Free TrialLog in
Avatar of sbornstein2
sbornstein2

asked on

Setting up host name on windows service port.

Hello all,

I have a wep api setup as a windows service running against a port like 6000.   How can I set a host name up like http://myappservice.... instead of the computer name and port to reach it?
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can't define ports in DNS or Host name. If you're using a port other than 80 to communicate with an HTTP based website, you have to include the port at the end of the FQDN like this: http://myappservice.com:6000/remainingurl

There really isn't a way around this without using a firewall to translate one port to another (which you could possibly do with Windows Firewall).
Create a CNAME in DNS and change port to 80 (preferably 443 with a certificate)
If you already have website on 80/443, use host headers to route to correct site
Avatar of sbornstein2
sbornstein2

ASKER

Thanks