My target my server via http://10.12.135.57:2828/
What I can do now I can access my server via these two ways:
http://localhost:2828
http://127.0.0.1:2828
IP configuration
Result of ifconfig | grep inet
inet 10.12.135.57 netmask 255.255.255.0 broadcast 10.12.135.255
inet6 fe80::add2:1119:8cdc:cc2a prefixlen 64 scopeid 0x20<link>
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
inet 10.12.135.57 netmask 255.0.0.0
Output of cat /etc/hosts
:
127.0.0.1 localhost
127.0.1.1 ravijks-OptiPlex-9020
The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Firewall
$ sudo ufw disable
Firewall stopped and disabled on system startup
$ sudo ufw status
Status: inactive