Page 1 of 1

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

Posted: 21. Nov 2012, 21:45
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.

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

Posted: 21. Nov 2012, 21:51
by Perryg
Sure you don't have DNS so add an entry to the hosts "host" file.

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

Posted: 21. Nov 2012, 22:16
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.

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

Posted: 21. Nov 2012, 22:28
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.