What is my IP ?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
yoni
Posts: 2
Joined: 16. Sep 2010, 12:51
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: Lenny

What is my IP ?

Post by yoni »

Hello,

Facts:
I'm a noob
I have installed Virtualbox on a Windows 7 computer
I have installed Debian/Lenny on the VirtualBox
On the debian ifconfig says my IP is 10.0.2.15
I have installed differents services i should be able to access from the "outside world" (red5, tomcat, etc)
From my debian i can access the web (elinks http://www.cnn.com is ok) and the installed services (elinks http://10.0.2.15:8080 show the Tomcat page).

My DHCP address are like 192.168.0.xxx
At some point i saw Virtualbox setting IP/DHCP (i can't find it back) i set IPv4 address 192.168.0.111
And not sure about what i was really doing i set virtualbox dhcp (192.168.0.101 and range from .100 to .115).

What i want is to access my VB server services from my windows (and later from the outside).
BUT WHAT is my server services IP ????????

In IE7;
http://10.0.2.15(and :8080) = internet cannot display the webpage
http://192.168.0.111(and :8080) = internet cannot display the webpage
http://192.168.0.101(and :8080) = internet cannot display the webpage

In Command prompt
Ping 10.0.2.15 = request timed out
Ping 192.168.0.101 = replay from 192.168.0.199 (the real windows ip) destination host unreachable
Ping 192.168.0.101 = replay from 192.168.0.111 destination host unreachable

BUT
Ping 192.168.0.111 = is replying !!!!

So ?... Help !!!!!!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: What is my IP ?

Post by Perryg »

Switch to Bridged instead of NAT or configure port forwarding.
Then the access address (using NAT port forwarding) will be the host IP followed by the host port you configure.
yoni
Posts: 2
Joined: 16. Sep 2010, 12:51
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: Lenny

Re: What is my IP ?

Post by yoni »

Perryg wrote:Switch to Bridged instead of NAT or configure port forwarding.
Then the access address (using NAT port forwarding) will be the host IP followed by the host port you configure.
Hello Perryg and thanks for your help.

I switched to bridged.
If i understood you, the access address then should have been <mywinmachineIP>:<portused> in my case 192.168.0.199:8080 should displayed Tomcat page.
Still no good. I have retest everything and then found two things.

1/ ipconfig on my win host machine show a new entry "Ethernet adapter Virtualbox Host only network:
192.168.0.111
BUT nothing i can test work with this IP

2/ ifconfig on the Virtualbox display a new IP address, 192.168.0.8 instead of 10.0.2.15.
I try this IP = SUCCESS on my win host and other computer on my network. 80, Tomcat and red5 are answering !!!
Should be quit easy then to configure my router/forwarding port so the VB services get incoming/ougoing from the outside world.

Btw i'm Tiki Wiki dev and i'm installing BigBlueButton conference software into a test machine before deploying if it interest someone.

Perryg, THANKS YOU A LOT !

Bernard
http://www.shocksite.com
zacstaples
Posts: 1
Joined: 24. May 2015, 22:32

Re: What is my IP ?

Post by zacstaples »

This post is about 5 years old, but was exactly what I needed to get up and running today!

Thanks,
Zac :)
Post Reply