I asked this question on www.askubuntu.com
public IP and ifconfig ip are different: how to connect my computer to internet
because I want to setup my own web server and it should be accessed with internet/www/an ip address.
I have set an home webserver with my application running. My machine runs ubuntu 14.04 LTS and i tested it to be working within the devices connected to that router.
I also found the ip address that is assigned to the router for internet and port forwarding is working. when i type the IP address it opens the apache webserver index.html
http://192.168.1.4/ --- ip address assigned by the router = works.
http://10.1.10.149/ --- ip address assigned to the router = works with port forwarding
my ip address when i use http://whatismyipaddress.com/ ----- 18.104.22.168
how do i find my webserver in the internet?
answer is on page 3 and some explanation on page 2!