How do I get my Linux servers accessible via http://hostname/
Put your network adapters into Bridged mode so it gets its own address from the router
In Virtual Machine's settings, select Networking->Adapter *x*->Bridged Mode->OK
Related videos on Youtube
Future King
Updated on September 18, 2022Comments
-
Future King almost 2 years
I have two Linux servers on VirtualBox Virtual machines. One is Ubuntu Linux and another is OpenSuse Linux.
The hostname of Ubuntu server is "ubuntu-server" and hostname of open suse server is "suse-server".
When I type http:// ubuntu-server from my host machine it works perfectly. But when I type http:// suse-server from my host machine it doesn't work. To access suse apache I have to type its IP adress eg: http:// 192.168.1.5
I checked my "hosts" file and it doesn't has any entry for ubuntu-server.
How can access SUSE server's Apache without typing its IP address and without editing hosts file in host machine?
My host OS is Windows 7 Professional.
-
iainlbc over 12 yearsSounds like the suse server may not have a hostname. What does
hostname
return?
-
-
Future King over 12 yearsBut I can access my ubuntu server by just using hostname. And this is happening without DNS server.
-
Future King over 12 yearsI have installed SAMBA in both ubuntu and suse server. From Windows Host machine I can access ubuntu server by just typing \\UBUNTU-SERVER in Windows explorer. But for suse server I have to type its IP address.
-
Future King over 12 yearsnetwork adapters are in bridged mode
-
user1686 over 12 years@Future: Make sure you have
nmbd
actually running on SuSE and not blocked by the firewall.