Setting up Website with DDNS
    
    Here we will use a Sky router for port forwarding and ddns service.
   
    Noip for DDNS setup
    
    - Register an account in https://www.noip.com, confirm and log in the account.
 
    - Dynamic DNS → No-IP Hostnames → Create Hostname → Create Hostname with following settings,
 
    
Hostname: random
Domain: ddns.net
Record Type: DNS Host (A)
IPv4: auto
    
    - Install the Linux Dynamic Update Client on Ubuntu. Follow the instructions, all for default. 
 
    
    
    Router Settings
    
    - Login 192.168.0.1. 
 
    - [DDNS] Advanced tab → Dynamic DNS → Settings → Apply, 
 
    
Tick Use a Dynamic DNS Service
Service Provider: www.noip.com
Host Name: random.ddns.net
User Name: email
Password: no ip password
    
    - [DHCP] Advanced tab → LAN IP Setup → Address Reservation → Add → Settings → Reboot
 
    
Reserve An IP Address
IP Address: check by ifconfig
MAC Address: auto
Device: auto
    
    - [Port Forwarding] Security tab → Services → Add Service →Apply 
 
    
Edit Custom Service - Port Forwarding
Name: website
Type: TCP
Start Port: 80
Finish Port: 80
    
    - [Firewall] Security tab → Firewall Rules → Inbound services → Add → Apply.
 
    
IPv4 Settings
Service: HTTP(TCP:80)
Action: ALLOW always
Destination IPv4 LAN address: server ip
Access from: Any
Source Ipv4 start finish address: 0.0.0.0
Log: Always
    
    
    Laptop Firewall
    
    - Enable HTTP.
 
    
sudo ufw app list
sudo ufw allow 80
sudo ufw show added
sudo ufw enable
    
    
    Laptop Apache2 page
    
    - Start apache2.
 
    
sudo systemctl stop nginx
sudo systemctl start apache2
    
    - Can edit the file 
/var/www/html/index.html. 
    
    
    References
    
    
    - How to Configure Your No-IP Hostname [my.noip.com] 
 
    - How to Install the Linux Dynamic Update Client on Ubuntu 
 
    - Free Dynamic DNS : Getting Started Guide 
 
    - How to set up port forwarding
 
    - How to Configure DDNS (Dynamic DNS) in a Router 
 
    - Sky SR101 DynamicDNS
 
    - How To Set Up a Firewall with UFW on Ubuntu 18.04
 
    - How to Start, Stop, or Restart Apache Server on Ubuntu