Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an application running on my home server on port say 8050. After registering my domain , how do I point it to my static IP. Right now I am using http://XX.XXX.XXX.XX:8050/

How do I make the domain name automatically forward the request to the port 8050 on GoDaddy.

Thanks

share|improve this question

closed as off topic by ChrisF, Diogo, David Schwartz, Kyle, Joe Taylor Aug 15 '12 at 13:31

Questions on Super User are expected to relate to computer software or computer hardware within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

2  
Why was this question downvoted? –  amotzg Aug 15 '12 at 12:43

1 Answer 1

A Domain Name will simply resolve to an IP and has nothing to do with the port the request will actually be sent to. The port end point on the host is defined as another part of the URL.

See Wikipedia for Domain Name Purpose:

Domain names serve as humanly-memorable names for Internet participants, like computers, networks, and services. A domain name represents an Internet Protocol (IP) resource. Individual Internet host computers use domain names as host identifiers, or hostnames. Hostnames are the leaf labels in the domain name system usually without further subordinate domain name space. Hostnames appear as a component in Uniform Resource Locators (URLs) for Internet resources such as web sites (e.g., en.wikipedia.org).

And for URL syntax:

Every URL consists of some of the following: the scheme name (commonly called protocol), followed by a colon, two slashes,[note 1] then, depending on scheme, a server name (exp. ftp., www., smtp., etc.) followed by a dot (.) then a domain name[note 2] (alternatively, IP address), a port number, the path of the resource to be fetched or the program to be run, then, for programs such as Common Gateway Interface (CGI) scripts, a query string,[7][8] and an optional fragment identifier.

What you might do is install a small proxy server (e.g. http://www.gcd.org/sengoku/stone/) and put your traffic through to the server running on 8050.

As you said you were running this application on a "Home Server", is it behind a router which might do the port forwarding? That would be the simpliest solution.

share|improve this answer
    
Hi Thanks for replying. The server is behind a router and it does the forwarding and hence the 'myStaticIP:8050/'; works. Basically its a java webs start application. But I onl wish to avoid the myStaticIP in dot format and put a name to it. Should I then use something like this 'myDomain:8050/'; –  Freelance Aug 15 '12 at 11:28
    
If the router can forward its port 8050 to your server's port 8050, you should be able to change this setting to make it forward its 80 to the server's 8050. Or am I getting you wrong? I think it would still handle requests from inside the local network itself (so show you the web interface) and just forward external requests on :80 –  stex Aug 15 '12 at 11:30
    
I thought all http requests are automatically forwaded to port 80 and I do not want to touch that setting as I might have some websites on the server. I only wish to specifically forward certain requests port 8050 where the application is running like here XX.XXX.XXX.XX:8050 –  Freelance Aug 15 '12 at 11:33
    
A request can not be routed to a specific port by means of Domain name definition. The domain name is another part of the URL. The port to be used can either be deduced from the URL scheme or read from an explicit port definition after the host name. (e.g. by default HTTP use port 80 but the resource at foo.bar.com:8045 can also "talk" HTTP) –  amotzg Aug 15 '12 at 11:43
    
Hi Thanks again. I think that kind of answers my question. I will check that out as I have some spare domains parked and see if it works. –  Freelance Aug 15 '12 at 11:52

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