I understand that this is very commonly asked question. I too found tons of related thread but trying their solution didnt work for me. So i decided to ask it again.
Problem I would like to host my website from my laptop (on temporary basis. Once hosted from local machine i will switch to AWS free tier). But I am not able to do so.
What i have tried ?
My domain name:
My ip addr:
Mapped the IP of the domain to my IP address. To confirm same, now when I do
ping seaglegroup.co.in, I get
PING seaglegroup.co.in (126.96.36.199) 56(84) bytes of data. From 10.228.1.25 icmp_seq=1 Time to live exceeded
Now I changed the
/etc/hostsfile added following entries.
127.0.0.1 localhost 127.0.0.1 188.8.131.52 127.0.0.1 seaglegroup.co.in
Now I ran my
node.jsapplication which return HTML page.
Now when I type
www.seaglegroup.co.inin browser, I am not getting anything.
Also when I run
http://184.108.40.206:8080/ in browser, page doesn't load as request is not coming to Node.js program.
Just to eliminate
Node.js issue, I ran localhost:8080 in browser and my web page loaded as expected.
I am not able to figure out where the issue is.
I just saw output of
sudo ufw status
I enabled the port by
sudo ufw enable
Check the status again:
sudo ufw status
Status: active To Action From -- ------ ---- 80/tcp ALLOW Anywhere 80/tcp (v6) ALLOW Anywhere (v6)
- Restart my Node.js server, but still same problem persist.
My question doesnt look duplicate of linked question as
- Linked question is about LAmp server whereas i have Node.js involved.
- I am facing issue in some very specific area and linked question seems broader.
- Solution to linked question doesnot resolve my problem.