Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I purchased a domain through Amazon Route 53 and am hosting my Node.js/ExpressJS app on an Amazon Linux EC2 Instance server. I can get my site to run on my EC2 server by using the public IP:portNumber or by using the publicDNS:portNumber, but I am struggling to understand how to set up the record sets in the hosted zone section of the Route 53 console to have my website point to www.thedomainipurchased.com:portNumber. I also read somewhere that you can't add the port number onto the public ip like that, so I would like to know how to set up both records to do this. I'm new to DNS, which is why I've had such a hard time although I'm sure to some people this seems very simple so would really appreciate any feedback to be explained in as basic and simple of a way as possible. Record Set Picture here
DNS only provides a way to map names to the IP addresses of hosts. Except under very limited circumstances you can't include a port number. DNS simply isn't designed to do that.
Ports are determined by the protocol involved. If you use a web browser to connect via HTTP then it will default to using port 80. If you use a web browser to connect via HTTPS then it will default to using port 443. When you send e-mail the default port is 25. When you SSH into a server the default port is 22. And so on. Default ports are essentially part of the specification for the global internet.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 11 months ago.
Improve this question
I have a web server set up at home for hosting a web site and I bought a domain from NameCheap. Now I want to connect the two together. I watched a lot of tutorials and I can see that the most popular way of registering your server is with a DNS 'A record' by connecting to my IP address. The problem is that my IP address is changing every once in a while and I am not sure if this means that I have to make my IP static. Is that possible and how do I do that? Also, is this a good way of connecting my domain to my server or is there a better way?
It's possible, there are 2 options:
Call your ISP, and ask if they offer a static IP as an option for your service (depending on where you live, this could be expensive, and not available for home connections). Then point the DNS A to your new fix IP.
Use a service like "No-IP": In this scenario you have to associate a CNAME (instead of a A Record) to a subdomain from No-IP, and they will redirect to your home dynamic IP.
Now take into account, for those 2 cases, you'll need to forward that domain to your local computer using the function of DDNS of your router, plus another settings like port forwarding.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I am currently living at the student homes to my university. I want to set up a NAS / server to run backups, VM and some other small task. This is also something I want to set up to learn more about Linux and networking. I am currently planning how to set it up and what hardware to buy, but I want to run arch Linux on it with RAID 1. A problem I'm thinking about is that I don't have access to the router and therefore I can't set up port forwarding to connect to the server. Is there a way to get remote access to it without adjusting the settings in the router?
At my University we have the ability to connect to a vpn so we can access services only available through a specific University IP.
I haven't tested this method but I believe it could work.
Set up your services like normal and configure them to use port 80 if they need any data from the outside.
Make a script, probably available somewhere, to send you your internally ip address on e.g. mail.
That way you can use your schools VPN service to connect to the lan and from there you can access an internal ip address(your server).
This all depends on this VPN service and if you are connected to the same network.
#iporSircor commented on a method you can use. It's basically the same as what I wrote, but instead of connecting to schools VPN you will connect to your own VPN(server).
Test it out and let us know what method you used, what worked, what didn't.
And also you should talk to your school to find out if using Tor or even setting up a server on their network is allowed.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I've got a reply from my server admin as "Do you need any ports open?"
On this server one website is hosted which is not getting loaded. So I conveyed him that the website is not getting loaded though I'm able to login to the given IP address through FTP client (File Zilla) and ssh (using terminal).
Actually I want to access the files at the said IP address through FTP client and its working fine. My main issue is that the website is not loading.
I'm not getting what does this question mean and what should I reply to it? I'm not aware of any such thing.
Services on the network use different "ports" to distinguish between different endpoints. You can imagine a port number as a "sub-address". For successful connection you need to know an IP address and also the port number.
For example FTP protocol uses port 21. You can find more detailed list of commonly used ports on Wikipedia http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
The common phrase "open some port" means the access to that particular port will be enabled on firewall (usually all ports are "closed" because of security).
For your website you need ports 80 and 443 to be opened
If your website is using the HTTP protocol, then you need port 80 to be open. If it is using HTTPS protocol, then you need port 443 to be open.
Try getting both the ports opened, that should solve your problem immediately.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I would like to know how to make my Linux Server accesible for anyone around the world. I currectly can access it via 192.168.1.22 locally on my network. I would like it to be accesible through and IP or a domain name.
If you are wanting all ports to be accessible then you can make the box a DMZ on your router and set a static IP, then you are done. If you want it to be accessible through SSH which is what I am going to assume, then you need to set a static IP for the box forward the internal IP address and port in your router and then optionally set up DDNS settings if available. At that point you will be able to access the box from any public network. If you need help let me know.
Either get a static IP address from your Internet Service Provider, or use Dynamic DNS to map a domain name to a dynamic IP address.
One well known Dynamic DNS provider is NoIP
http://www.noip.com/free/
In any case, you probably have a NAT "firewall" that blocks all incoming traffic, so you'll need to configure the firewall to allow ports through that you want to server. Typical Linksys / Netgear NAT firewalls / Wifi routers allow you to port forward to a single private IP address.
Finally, you should make sure your ISP allows running a server. Though most of them dont mind, because the upload speed is throttled by design, you still want to check the terms of service.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a VPS on DigitalOcean.
I have a Node.JS and MongoDB application.
Now I want to pin my domain (myapp.com) to my Node.JS app.
Now I can run my app by IP like 192.xxx.xxx.xxx:8080. I want to have this on address myapp.com.
How to do that?
A domain does not point to an app but to a machine, so to start make sure your domain points to your VPS's IP, i guess you can access to DNS settings in your host's interface.
If your app is running on :8080 then http://myapp.com:8080 should then point to your app.
If you want your app to run on the http://myapp.com only (without :8080) you have to either launch the app on port 80 (which is the default http port) or install a reverse proxy that tunnels :80 to :8080.
I personally recommend using a proxy, as you would be able to add other NodeJs apps later, each running on different ports and beeing served through the proxy.
Nginx is used a lot as a reverse proxy for node or ruby applications, and you should find a lot of documentation for it.
Alternatively, to play pure NodeJS, have a look at node-proxy, it should suit your needs very well too.