Virtual Network

Discussions related to using VirtualBox on Linux hosts.
Post Reply
khaipur
Posts: 2
Joined: 23. May 2008, 15:50

Virtual Network

Post by khaipur »

how can i change the virtual network address

im trying to use a piece of software that has had the network hard coded in and i want to change the virtual network address.

please note that i cannot just use a bridged network because the host machine is also on a different net.
currently running ubuntu 8.04
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 »

First, you can't change the DHCP address you get.

Second, programs that have the IP hard coded just plain suck. They shouldn't be used, or even exist. This is a bad way of programming. Scold the programmer to remove this, because this gives demands on the network, something not everyone can change (corporations depend on certain settings, it's not something that's easily done).

If you want to have an IP address, just for the program to listen to, then use internal networking. It will not communicate with the outside world but stay within VB. If it needs to go outside the VM (e.g. a server on the Host network, even though it's another range) you can use the bridge just fine. Your host will have the IP it needs, the Guest can have a different IP range. No problems with that. And there is also an option for aliasses if it doesn't work as planned.
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.
khaipur
Posts: 2
Joined: 23. May 2008, 15:50

Post by khaipur »

i agree that hard coded ips suck but it was written in 92 as custom app and no matter how much i bitch they wont replace it, while at the same time demanding that i keep it running and consolidate infrastructure. it doesn't matter anymore anyway i put it on a vmware vm where you can change the virtual networks
Post Reply