How do I host a dedicated server?

Discussion in 'Monday Night Combat PC Discussion' started by VoxNihili, January 6, 2011.

  1. VoxNihili

    VoxNihili New Member

    Messages:
    24
    Likes Received:
    0
    I've read the FAQ, I know about the server tool, I've forwarded all the ports, the problem is, I've got a server up and running (on my wife's PC), and although I can join it and play, nobody else can.

    It appears the problem is that Steam is showing the server's address as her private IP; e.g. when someone tries to join on me via Steam, the game info shows as 192.168.1.1:7777. Obviously that's not right (and might be why the game shows up as LAN for me, even though it's not set as such).

    How on Earth do I change the server to use my public IP address?
  2. faits

    faits New Member

    Messages:
    347
    Likes Received:
    0
    It's normal for the game to show up on LAN locally. As long as it also shows up in the internet tab everything is fine. My server, for instance, shows up on both the internet and LAN tabs.

    It will also show the local IP in the log files. I'm not sure what you mean by it showing that to people who try to join you via steam. I don't think it's possible at this time for people to join games via their friends list.

    Is your server showing up (for you or others) in the server browser? Have you had anyone try to join manually via console?
  3. VoxNihili

    VoxNihili New Member

    Messages:
    24
    Likes Received:
    0
    Unfortunately it's not showing up on the Internet tab for me or anyone else. And you can join via Steam friends list - that's how I join most games. But if I'm in my server, and friends try that for me, the server info there shows the server's private IP.

    Connect <whatever my IP is> via console wasn't working (it does nothing, apparently). Is there some other way to manually join?
  4. dustoff

    dustoff New Member

    Messages:
    179
    Likes Received:
    0
    the command is open no connect
  5. VoxNihili

    VoxNihili New Member

    Messages:
    24
    Likes Received:
    0
    Open <my IP address> doesn't seem to work, either. Not even when I specify a port. It doesn't do anything.

    EDIT: Is there some equivalent of sv_lan 0 for the MNC server? I've got bIsLanMatch=False? in the batch file I use to launch it.

    This has me ready to tear my hair out. I can't for the life of my understand what's wrong, and why this won't show up under the Internet servers.

    EDIT 2: Nevermind. I found it. This has been driving me insane for I don't know how long now.

    There was a bug with my router's firmware that caused the port range forwarding link to take you to single port mapping. Since the layout for both looked the same, when I thought I was forwarding 7777 through 7778, I was actually mapping 7777 externally to 7778 internally. Updated the firmware, which made the problem obvious. It's working now.
  6. heffeque

    heffeque New Member

    Messages:
    2
    Likes Received:
    0
    I have the same problem. Both 7777 and 7778 are forwared to my computer. I run MNC, I go to Multiplayer, I configure the server as dedicated, and the log says "PublishSteamServer::HostAddress IP is 192.168.1.56:7777"

    Without doing Control+C or closing or anything I open MNC and go to Multiplayer again... and there's no sight of it in Internet, but it IS in LAN.

    Is there any way I can tell it what my IP is manually?
  7. racquemis

    racquemis New Member

    Messages:
    289
    Likes Received:
    0
    You guys sure have little knowledge about networking and servers in general :lol: , i'l answer it again.

    First of the all the log will always report a local ip address since the server is hosted on the same pc it's running on offcourse. that is completely normal for anyone hosting a server at home or from a desktop PC. This only changes when the machine has a dedicated connection to the internet(without routers and switches in between)

    2)you are hosting a server on the SAME network as your client/game
    All servers that are identified being on the same network will appear on the LAN page.
    obviously you are running the server on the pc as your game.
    If you query your server what would be to most efficient way to do so? by connecting to the internet sending data across the country and back to your pc (many kilometers)? or by making the connection through your local network (couple of meters). The second choice ofcourse. and this is what all network equipment do.
    Your making the connection through your local network and obviously it will appear on the LAN page. This is completely normal, other people(those not on your local network) will see it listed on the Internet tab when all the ports are forwarded correctly.

    3)if you want to use the open command use the query port instead of the gameport. (if i' m not mistaken)
    instead of typing "open 192.168.1.56:7777" type "open 192.168.156:27016"
  8. heffeque

    heffeque New Member

    Messages:
    2
    Likes Received:
    0
    Sorry but I actually do.

    If the server were more intelligent, when not enabling the "LAN" mode, it should get the external IP, not the internal one, just like other games do.

    Yes, so?

    Yes, there's no problem there.

    I said that, yes.

    I see you've never done much home networking. If I access another computer from my LAN with the external IP (with port fowarding), the farthest it goes is to the router, not miles away, even if I access it from the external IP. (NAT loopback is enabled)

    Yes, again there's no problem there.

    No, they don't see me listed on the Internet tab either (actually I should see myself in both and I only see myself in LAN).

    Now THAT's the part that's actually helpful. Laughing at other people isn't as helpful.

    The thing is... "open" is a Unix command, not a DOS command. And I can't find any documentation about how to access the server through Windows. Should I use telnet? How does this game's server work?
  9. racquemis

    racquemis New Member

    Messages:
    289
    Likes Received:
    0
    okay, so you realize why the server only appears on the lan page and that it's normal

    I was mistaken about the open command, it is the gameport, got confused because i constantly use the query port in my scripts and databases.

    the open command is a command that can be given in the console of the game, i don't really understand what dos and unix have to do with that.

Share This Page