LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 08-09-2010, 03:24 PM   #1
natoinet
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Rep: Reputation: 0
Question How to access a website installed over virtualized server from your local machine?


Hello,

I want to access a website installed over my virtualized server from my local machine from my browser. How can I do that?
I have installed UBuntu 9.10 server in Virtual Box and it works great.
Apache is up and running.

My machine is behind a router, whose IP is changing every 24h.
- The IP address of the virtualized ubuntu server over the subnetwork is 10.0.2.5
- The IP of the (real) machine over the subnetwork is 10.0.1.3,
- The IP of the router over the subnetwork is 10.1.1.1
- The IP of the router over the web is (for example) 88.5.200.99 and changes every 24h

So I don't think it's necessary to point my dns to 88.5.200.99, there must be another way to access the website hosted on my virtualized web server from my local machine?

Thanks,
Natoinet.

Last edited by natoinet; 08-09-2010 at 03:27 PM. Reason: Clarification
 
Old 08-09-2010, 03:29 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Just browse to 10.0.2.5?
 
Old 08-09-2010, 04:53 PM   #3
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
I presume the task here is to be able to browse to 10.0.2.5 from outside of the private network? One option might be allowing the virtual machine to speak to the router and use NAT. however as you appear to be using DHCP with a daily update, you might have to use a service like Dynamic DNS if you want to be able to connect to the server outside of the private network at any given point. Alternatively if you can get to the main machine you could use a tunnel to the machine and route traffic down that if this is just for yourself....

I think if you could clarify essentially where you local machine is and who/what needs to be able to browse your server to help give more suitable advice (IE just you, you and other people, anybody on the Internet, etc).
 
Old 08-18-2010, 01:47 AM   #4
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
What networking option have you selected for the guest. The default is NAT which lets you "get out", but if you want to provide a service from the guest then you might want to look at bridged networking.
 
  


Reply

Tags
apache, virtual, website



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
www ilo local ip to access website on lan tryangle Linux - Networking 9 09-18-2009 09:11 PM
Squid server not giving access to my local machine to internet ashish1983 Linux - Newbie 3 05-14-2009 12:15 AM
Access Local Port on Website Garibaldi3489 Linux - Networking 1 11-29-2007 01:43 PM
Unable to access website from local network pioniere Linux - Networking 8 07-31-2006 09:09 AM
restricting website access from local machine Stridier Linux - Networking 9 01-30-2006 04:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 01:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration