From non-host computer access works only by IP not net name

Discussions related to using VirtualBox on Windows hosts.
Post Reply
kamakamadaun
Posts: 2
Joined: 21. Nov 2012, 21:38

From non-host computer access works only by IP not net name

Post by kamakamadaun »

Hi.

I installed an ubuntu server using a windows 7 host. I set it to use bridged network.
I installed several applications that have a web interface. From the host I can access the different web interfaces using something like: hxxp://server_name:8080

But from other computers though I cannot access it using the server name; Only by IP like hxxp://192.168.1.13:8080/


If I go to the list of network drives in windows and try to access the ubuntu server it lists the server with its name. When I click it it says it cannot access the drive though (on all non-host computers in the network). Using \\192.168.1.13 gives me access though.


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

Re: From non-host computer access works only by IP not net n

Post by Perryg »

Sure you don't have DNS so add an entry to the hosts "host" file.
kamakamadaun
Posts: 2
Joined: 21. Nov 2012, 21:38

Re: From non-host computer access works only by IP not net n

Post by kamakamadaun »

Thank you for the reply.

Did you mean adding something like this to the host file of the host?:
192.168.1.13 server_name

I tried that and it didn't help.
If I add it to the computer that I want to connect with it works though. But this doesn't seem like a nice solution. The guest could change IP (yes I know it would be more proper to fix it in the router) so I was wondering if there was a more proper solution? Seems like using the host file is a hack. Or am I wrong?

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

Re: From non-host computer access works only by IP not net n

Post by Perryg »

Adding it to the host will only help for the host to be able to use the friendly name. If you want to access it from a different PC then you would need the entry there as well.
Post Reply