-1

We have a Windows 2012 dedicated server. There’s a custom service running on port xxxxx which accepts connections from our custom built hardware devices over TCP/IP port. As of now we use servername.serverdomain.com:xxxxx to connect to the service and start communication. However, we prefer to use URL instead of server’s name or IP Address. So we got a custom url and set its name servers to point to dedicated server. However, just setting DNS doesn’t seem to be working. Could someone please guide as to how to get it working?

UPDATE In short I want www.custom-url.com being forwarded to servername.serverdomain.com:xxxxx. These requests are coming from hardware and not browser.

AM0
  • 1
  • 2
  • Not sure what you want to achieve...You mean you want to use DNS to use port 80 instead of port xxxx ? DNS don't do that – krisFR Aug 22 '14 at 20:49
  • No I want requests coming on e.g. www.custom-url.com forwarded to the service running on dedicated server port xxxxx. These connection requests are from hardware devices and not browser. – AM0 Aug 22 '14 at 20:51
  • 1
    So you need a Reverse Proxy or a Firewall to NAT www.custom-url.com to dedicated-server:xxxx. Once again, DNS don't do that – krisFR Aug 22 '14 at 20:54

2 Answers2

3

You could install, or use a preexisting, webserver to host your domain, and have a ProxyPass to your service.

I.e.

ProxyPass / serviceip:port
ProxyPassReverse / serviceip:port

Since you are mapping the root url you might want to put that config inside a virtualhost directive inside the webserver, at least if you share the webserver.

A rule with mod_rewrite, also inside a webserver, can also help you.

The webserver can be hosted on a different, or the same, server.

sastorsl
  • 362
  • 2
  • 15
1

DNS won't do what you want.

You will need a Reverse Proxy or a Firewall to NAT

www.custom-url.com to dedicated-server:xxxx.

krisFR
  • 13,280
  • 4
  • 36
  • 42