app deployed, but cannot access it.
Hi guys, I just deployed my web app on the linode, however, still cannot access it via the public IP.
1) Can I directly access the web app through the public IP address,e.g., 172.105.125.36 or 172.105.125.36:80 ? or I have to register a FQDN first and link it to the public IP?
2) I'm not sure the settings in the host file is correct. My host file settings are as follows.
127.0.0.1 localhost.localdomain localhost
172.105.125.36 myHostName
2411:8931::f13c:94ff:fe2e:4141 myHostName
Here myHostName is my host name, and I simple copy "localhost.localdomain localhost" from the 'Getting Started with Linode' guide.
Please help check anything goes wrong here. Thank you!
3 Replies
Hi, welcome,
1) you don’t need to register a domain to access your Linode - although if you are providing an app to end users, you’ll want to get one set up - users won’t remember IP addresses!
What OS is your Linode running? Do you have a firewall running on your Linode that is blocking the traffic to port 80?
2) The hosts file is used to tell your Linode what IP address a particular hostname has. It’s therefore usually used for outbound traffic; it won’t affect your issue accessing the application (inbound traffic.)
Thanks andysh~ I'm using Ubuntu 16.04. regarding the 'localhost.localdomain', what is the 'localdomain', should I replace it with a real domain name?
regarding the 'localhost.localdomain', what is the 'localdomain', should I replace it with a real domain name?
No, “localhost.localdomain” is the fully-qualified name of “localhost” - a loopback address for the same machine. You don’t need to change that.
What do the following commands output?
ufw status
iptables -L