Question about ips on VB

Discussions related to using VirtualBox on Windows hosts.
Post Reply
DjQurt
Posts: 8
Joined: 29. Nov 2008, 05:57

Question about ips on VB

Post by DjQurt »

Im trying to set up a webserver and mail server using VB (virtualize to seperate machines for each task) and was wondering if i can forward ports to the ip's they have. like i get the ip from ifconfig like 10.0.9.15 when my desktop and all other pcs in my house get 192.168.15.1** so can i just tell the router to forward ports the the ip i get in vb or do i need to assign static ones that are relative to the other pc's ip's? i hope that makes since lol
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

It doesn't make sense, if you don't give the info we need. For starters, what network settings do you use (attached NIC to ...). See the Forum Posting Guide for help giving the proper information and find information on the forum.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
DjQurt
Posts: 8
Joined: 29. Nov 2008, 05:57

Post by DjQurt »

okay i connect to a router wirelessly and then i just have my vb set up on my the pc so im guessing it gets it internet the same way now when i type ifconfig this is what i get on eth0, 10.0.2.15, when it should be around something like 192.168.15.1** do i just set a static ip and be done wtih it? or is it much more complicated than that?
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Post by baf »

Search the manual and this forum for "host networking".
And if you need more help then you must tell us host and guest OS.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

DjQurt wrote:okay i connect to a router wirelessly and then i just have my vb set up on my the pc so im guessing it gets it internet the same way now when i type ifconfig this is what i get on eth0, 10.0.2.15, when it should be around something like 192.168.15.1** do i just set a static ip and be done wtih it? or is it much more complicated than that?
It's a bit more complicated. The IP you get is the default when you attach the virtual NIC to NAT. Changing it's IP address will result in loss of connectivity.
And since you use wifi, you're kind of stuck on that as bridging often doesn't work on Windows Hosts with a wireless adapter because it doesn't support promiscuous mode, which is required for bridging.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
DjQurt
Posts: 8
Joined: 29. Nov 2008, 05:57

Post by DjQurt »

so is there anyway i can have some ports forwarded to this then?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

DjQurt wrote:so is there anyway i can have some ports forwarded to this then?
Yes, see the manual for how to do that. On the next major release of VB, it should be possible to forward a device directly to VB as a Host Interface, the same way MS VPC can.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
DjQurt
Posts: 8
Joined: 29. Nov 2008, 05:57

Post by DjQurt »

okay got it working! didnt use the manual cause i couldnt find my exact problem in there but found it elsewhere. anyway so i can get DHCP and set static, problem is i can only get a internet connection when using address' like 192.168.0.xxx where as i can only forward ports to address' like 192.168.15.xxx. what did i do wrong here?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Did you by change use Internet Connection Sharing, instead of Bridging?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
DjQurt
Posts: 8
Joined: 29. Nov 2008, 05:57

Post by DjQurt »

yes cause i couldnt find where to make bridges in vista :( so is that my problem just need to figure that out and im good to go?
DjQurt
Posts: 8
Joined: 29. Nov 2008, 05:57

Post by DjQurt »

Okay ip problem is solved but now i have no internet :D luckly i have the day off today to work on this :)
Post Reply