Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a simple home network consisting of 2 laptops - one is a linux box and the other runs windows and linux with a dual boot setup.
I develop my web apps on the linux box but would like to test them out on the windows machine using IE7. I have abandoned the idea of doing this in Linux using wine since in the real world this is unrealistic ...
How can I get my Windows machine to see the localhost web apps which run on the linux box ?
erm... open browser, go to address of linux box. Am I missing something? What level of "how" are you talking about? From physical connectivity to j2ee server configuration, there's a range of different things to look at.
If the Ubuntu box has Apache running then it should be listening on port 80. You can use netstat -nat to check. If it is then you should be able to use the IP address of the Ubuntu box from the windows box to bring up the web pages that you have created on the Ubuntu box.
Or to use the virtual host name instead of the ubuntu IP, you can add them to your hosts (C:\WINDOWS\system32\drivers\etc\hosts) file on the windows box. For example:
Code:
xxx.xxx.xxx.xxx www.example.com
Were www.example.com would be the name of you virtual host. You can have multiple virtual hosts pointing to the same IP address. While this works fine for testing, of course it would not work in production.
How would I direct the windows browser to a particular VS using the same IP address ?
Do you mean virtual host?
If so then like I said in my previous post create an entry in the windows host file. You can have multiple names associated with an IP address. For example:
Code:
xxx.xxx.xxx.xxx www.example.com dev.fpc.com
In the above host file entry both www.example.com and dev.fpc.com are associated with the same IP address. In your case the address of the Ubuntu box. So when you access either of the above names in Internet Exploder they will pull up the associated virtual host on the ubuntu box.
Again this works fine for testing, of course it would not work in production.
well it depends on the virtualized networking. Ideally you'd just be using bridged networking, in which case there is no special action at all. The VM appears on the same subnet like any other physical device. If you have nat networking then you'd need the host to redirect certain ports into the VM of your choosing. It's probably worthwhile converting to bridged if you're not already doing this. ALso note that the name of your apps is of no consequence at all.
Well the term "virtual host" is one of the vaguest in IT today. This could mean all sorts of things. Apache VirtualHosts, Virtual Machines, Clusters, Cloud services...
RE Or to use the virtual host name instead of the ubuntu IP, you can add them to your hosts (C:\WINDOWS\system32\drivers\etc\hosts) file on the windows box.
After editing this file do I need to reboot windows in order for the OS to pick it up ?
After editing this file do I need to reboot windows in order for the OS to pick it up ?
You should not need to reboot. To verify that the host file entries are working you could ping the names to see if they are resolving to the IP you associated them with.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.