Running server under ubuntu virtual machine but cannot connect on host

Discussion in 'Bukkit Help' started by blindsarcasm, Aug 11, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    blindsarcasm

    I figured how to run my bukkit server on a virtual machine on ubuntu, mainly because it is more stable, as my friend told me, (I have lots of ram and a good connection, don't harass about that).

    I can't connect to my own server from my main OS which is Win7. I have tried 127.0.0.1, but internal ip, my external IP but i still cannot connect. Any suggessions or explanations?

    Also, I can't bind my usual bukkit IP to the server.properties, its usually 192.168.1.5 but i get
    Code:
    [Error]Is a server already running on that port?
    
    but back on my main machine it works.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  2. Offline

    zhuowei

    I think that's because the virtual machine has its own network address. Try typing
    Code:
    ifconfig
    in the ubuntu command line and look for the "inet addr", the Virtual Machine's network address, and using it to connect from your machine.
    Also, according to the Minecraft Wiki, it is recommended that server-ip in server.properties be left blank.
     
  3. Offline

    blindsarcasm

    If I leave it empty, can other connect using my usual IP address?

    I just tried your method, and no, it does not work, I have tried both of them.
    Code:
    Error Can't connect:connect
    
     
  4. Offline

    zhuowei

    Which virtual machine software are you using?
     
  5. Offline

    blindsarcasm

    The title says it.

    But anyway

    Linux Ubuntu 11.04 Natty Narwhal
     
  6. Offline

    zhuowei

    Which software are you using to start the virtual machine: Virtual PC, VMWare, VirtualBox, QEMU or Parallels?
     
  7. Offline

    blindsarcasm

    VirtualBox
    Ty for helping :D
     
  8. Offline

    zhuowei

    You might want to look at the VirtualBox manual on networking.

    Edit:
    I guess running
    Code:
    VBoxManage modifyvm "VM name" --natpf1 "guestmcserver,tcp,,25565,,25565"
    in a Windows command prompt should do the trick. (replace "VM name" with the name of your virtual machine) Then, use 127.0.0.1 to connect.
     
  9. Offline

    blindsarcasm

    Are other Virtual Machine Softwares easier to config, I don't mind relearning? I have to do the portforwarding again...which was a pain in the first place. Because then I have to get ssh and so forth...
     
  10. Offline

    zhuowei

    I'm not familiar with networking with Virtual Machines, so I'm not sure about the differences. You might want to try VMWare Player, though, which has a bridged networking mode where the VM gets a internal ip like it is a physical computer on the same network.
     
  11. Offline

    blindsarcasm

    Are you on windows? Because that isn't a proper command, ill try looking around.

    I adjusted something in virtualbox so its a bridged adapter, ill try most/all the options and see how far i get

    I got it to run under a slightly alternate internal ip, keeping my external one, i think it works now. Thanks for the help

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  12. Offline

    zhuowei

    You're welcome. Good luck with the server.
     
  13. Offline

    blindsarcasm

    It works! I portfowarded the internal ip which I changedand now it works, i've updated it all and I am VERY, VERY happy.

    Thank you 1 million times for the help

    Hemoglobin on your sig links to MoreAirstrike. I wanna see what it is, so I can try it, sounds interesting

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  14. Offline

    zhuowei

    Never noticed that. Fixed, thanks. Hemoglobin allows mobs to "bleed" redstone that cannot be picked up. It's now kind of obsolete since SnowLeo's GoreMod looks better.
     
Thread Status:
Not open for further replies.

Share This Page