How do I get my Linux servers accessible via http://hostname/

6,624

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

Share:
6,624

Related videos on Youtube

Future King
Author by

Future King

Updated on September 18, 2022

Comments

  • Future King
    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
      iainlbc over 12 years
      Sounds like the suse server may not have a hostname. What does hostname return?
  • Future King
    Future King over 12 years
    But I can access my ubuntu server by just using hostname. And this is happening without DNS server.
  • Future King
    Future King over 12 years
    I 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
    Future King over 12 years
    network adapters are in bridged mode
  • user1686
    user1686 over 12 years
    @Future: Make sure you have nmbd actually running on SuSE and not blocked by the firewall.