I have Windows 8 host and I have installed Ubuntu 14.10 server as a virtual machine in vmware. I have installed LAMP server and I am trying to host a website from it. I have created a virtual host. my website is accessible in the host machine when I go to the address 192.168.0.106.
I have connected the internet through a wifi router. I don't have a static ip. when I go to my router info, I get this:
- MAC Address :B0:C5:54:83:90:FA
- IP Address :192.168.0.1
- Subnet Mask :255.255.255.0
- DHCP Server :Enabled
- MAC Address :B0:C5:54:83:90:FB
- IP Address :10.30.195.241
- Subnet Mask :255.255.224.0
- Default Gateway :10.30.192.1
- DNS :188.8.131.52, 184.108.40.206
When I search for "what is my ip" in google, I get this: 220.127.116.11, both in host and guest os.
Now, my issue is that how do I access my site from the internet? I know that I will have to edit hosts file and virtual host config file in ubuntu, but which ip address do I have to use? do I need to set up a dns server? I have a domain registered in godaddy, I want to know which ip address should I put in "points to" in the domain setting page.
Basically, I want to know which ip address should I type in address bar to go to my site, even if it works for only one day, and how do I edit the hosts file and configuration file in ubuntu to use that ip. I have tried searching in many forums and have not found the kind of clarity I need.