dragonofdark

I need some help to create my server.

Recommended Posts

Hello, I'm new on this forum and I don't know a lot of things on this subject : Creating a MTA:SA server.

So, I'd like a tutorial to help me create my server for my community. The server will be hosted on my computer, I haven't the money to pay a gamehosting or a dedicaced server.

I saw the wiki but I can't follow it, it's too dificult to understand.

A big thank in advance.

Edited by Guest

Share this post


Link to post

we dont have anything simplier than wiki - if you are having problems on some step - tell us what are you doing and what do you don't understand

Share this post


Link to post

My log say that :

= Multi Theft Auto: San Andreas v1.0.4 
=========================================================== 
= Server name      : The Gamer/Modder Community 
= Server IP address: 94.111.187.250 
= Server port      : 22003 
=  
= Log file         : ..reas/server/mods/deathmatch/logs/server.log 
= Maximum players  : 32 
= MTU packet size  : 1264 
= HTTP port        : 0 
=========================================================== 
[2010-11-05 18:00:03] Resources: 183 loaded, 0 failed 
[2010-11-05 18:00:03] ERROR: Could not bind the server on interface '94.111.187.250' and port '22003'! 
[2010-11-05 18:00:03] Server stopped! 
[2010-11-05 18:00:03] Stopping resources... 
[2010-11-05 18:00:03] Closing SQLite3 database 
[2010-11-05 18:00:04] Closing SQLite3 database 

Share this post


Link to post

Well, that was not the fairewall ; That was my ip, it changed yesterday...

Hem... Now I can caoonect to server but I have an error. Try to connect to 192.168.1.40 : 22003.

Share this post


Link to post

dragonofdark, what is the model of your router? Also, you could have just pasted the contents of mtaserver.conf in a post here, within


tags.

Share this post


Link to post

Opss, that worked before :/

My router is a D-link DSL-2640R. With portfoward.com, I choose this router then MTA SA R1.0 in application list. I enter my IP (94.111.249.25) and I do all things it's write in the tutorial. That's the result : 1289059165.jpeg

There is the code of the .conf :

<config> 
  
    <!-- This parameter specifies the name the server will be visible as in the ingame server browser  
         and on Game-Monitor. It is a required parameter. --> 
    <servername>The Gamer/Modder Community</servername> 
     
    <!-- ONLY USE THIS PARAMETER IF YOU ARE SURE OF WHAT YOU ARE DOING - it is generally only 
         needed for professional servers and should be left blank otherwise. 
         This parameter specifies the IP to use for servers that have multiple IP addresses. If left 
         blank, it will default to server's standard local IP address. --> 
    <serverip>94.111.249.25</serverip> 
     
    <!-- This parameter specifies the Maximum Transmission Unit or maximum packet size that the server 
         will use. This will depend on the nature of your clients, as well as the network medium your 
         server is connected to. --> 
    <mtusize>1264</mtusize> 
  
    <!-- This parameter specifies the UDP port on which the server will be accepting incoming player 
         connections; default value: 22003. It is a required parameter. --> 
    <serverport>22003</serverport>  
     
    <!-- This parameter specifies the number of maximum player slots available on the server; default 
         value: 32. It is a required parameter. --> 
    <maxplayers>32</maxplayers> 
     
    <!-- This parameter specifies whether the builtin http server will be used. 
         Values: 0 - disabled , 1 - enabled ; default value: 1. Optional parameter. --> 
    <httpserver>1</httpserver> 
     
    <!-- This parameter specifies the TCP port on which the server will be accepting incoming http 
         connections. It can be set to the same value as <serverport>. It is a required parameter 
         if <httpserver> is set to 1. --> 
    <httpport>22005</httpport> 
     
    <!-- If set, this parameter specifies the external URL from which clients will be able to download 
         needed resources ingame. Otherwise they will download them directly from the server. --> 
    <httpdownloadurl></httpdownloadurl> 
  
    <!-- This parameter specifies whether the client files for hosting on an external web server should be 
         automatically copied into mods/deathmatch/resource-cache/http-client-files/ 
         Only relevant if <httpdownloadurl> is set. 
         Values: 0 - disabled , 1 - enabled ; default value: 1. Optional parameter. --> 
    <httpautoclientfiles>1</httpautoclientfiles> 
     
    <!-- This parameter is deprecated. Please use httpmaxconnectionsperclient instead--> 
    <httpconnectionsperclient></httpconnectionsperclient> 
  
    <!-- This parameter limits the number of http connections each client can make. Depending on the type 
         of http server that is used, a lower figure may reduce download timeouts. 
         Available range: 1 to 8. --> 
    <httpmaxconnectionsperclient>5</httpmaxconnectionsperclient> 
  
    <!-- This parameter specifies what types of checks the clients should make to ensure there has 
         been no tampering with certain settings. 
         Values: 0 - disabled , -1 - everything. default value: -1. --> 
    <verifyclientsettings>-1</verifyclientsettings> 
  
    <!-- Comma seperated list of disabled anti-cheats. 
         e.g. To disable anti-cheat #2 and #3, use: 2,3 --> 
    <disableac></disableac> 
  
    <!-- Minimum client version. Clients with a lower version will not be allowed to connect. After 
         disconnection, clients will be given an opportunity to download an update (if their client 
         supports auto-update). 
         If left blank, this setting is disabled and there are no restrictions on who can connect. 
         Version numbers look like this: 1.0.4-9.01746.0 --> 
    <minclientversion></minclientversion> 
  
    <!-- Recommended client version. When connecting, if clients have a lower version, they will be given 
         the option to download an update (if their client supports auto-update). 
         If left blank, this setting is disabled. --> 
    <recommendedclientversion></recommendedclientversion> 
  
    <!-- This parameter can be used to make the server report to Game-Monitor master servers, allowing it to 
         be visible in the ingame server browser. An additional UDP port needs to be available for this to 
         work (value from <serverport> + 123 , so on a default <serverport> value 22003 the right port 
         will be 22126 ). Available values: 0 - disabled , 1 - enabled. Optional parameter, defaults to 0. --> 
    <ase>1</ase> 
  
    <!-- This parameter allows you to disable LAN broadcasting. -->  
    <donotbroadcastlan>0</donotbroadcastlan> 
  
    <!-- If set, players will have to provide a password specified below, before they can connect to the 
         server. If left blank, server doesn't require a password from them. --> 
    <password></password>  
     
    <!-- Specifies the location and name of the main server log file. If left blank, server won't be saving this file. --> 
    <logfile>logs/server.log</logfile> 
  
    <!-- As well as the main log file, login successes and failures are logged here for easy reviewing of security issues. 
         If left blank, this file is not used --> 
    <authfile>logs/server_auth.log</authfile> 
     
    <!-- This parameter specifies the location and name of the Access Control List settings file. If left 
         blank, server will use acl.xml file, located in the same folder as this configuration file. --> 
    <acl>acl.xml</acl>  
  
    <!-- Specifies the location and name of the debugscript log file. If left blank, server won't be saving this file. --> 
    <scriptdebuglogfile>logs/scripts.log</scriptdebuglogfile>  
     
    <!-- Specifies the level of the debugscript log file. Available values: 0, 1, 2, 3. When not set, defaults to 0. --> 
    <scriptdebugloglevel>0</scriptdebugloglevel> 
     
    <!-- Specifies the level of the html debug. Available values: 0, 1, 2, 3. When not set, defaults to 0. --> 
    <htmldebuglevel>0</htmldebuglevel> 
  
    <!-- Specifies the server frames limit. Minimum value: 25, default: 36. --> 
    <fpslimit>36</fpslimit> 
  
    <!-- Specifies the module(s) which are loaded with the server. To load several modules, add more <module> 
         parameter(s). Optional parameter. --> 
    <!-- <module src="sample_win32.dll"/> --> 
    <!-- <module src="sample_linux.so"/> --> 
     
    <!-- Specifies resources that are loaded when the server starts and/or which are protected from being stopped. 
         To specify several resources, add more <resource> parameter(s). --> 
  
    <resource src="admin" startup="1" protected="0"/> 
    <resource src="helpmanager" startup="1" protected="0"/> 
    <resource src="joinquit" startup="1" protected="0"/> 
    <resource src="defaultstats" startup="1" protected="0"/> 
    <resource src="mapcycler" startup="1" protected="0"/> 
    <resource src="mapmanager" startup="1" protected="0"/> 
    <resource src="parachute" startup="1" protected="0"/> 
    <resource src="resourcebrowser" startup="1" protected="1" default="true"/> 
    <resource src="resourcemanager" startup="1" protected="1"/> 
    <resource src="scoreboard" startup="1" protected="0"/> 
    <resource src="spawnmanager" startup="1" protected="0"/> 
    <resource src="votemanager" startup="1" protected="0"/> 
    <resource src="webadmin" startup="1" protected="0"/> 
     
    <!-- play is the default freeroam gamemode. Remove the following line to prevent it from starting. -->        
    <resource src="play" startup="1" protected="0"/> 
     
</config> 
  

Edited by Guest

Share this post


Link to post

Thanks ! But now the server is Okay but when I write "94.111.249.25" in quick connect, the connetion is time up and I can't see my server in Browse server...

Edited by Guest

Share this post


Link to post

i see you did something like that before. but i think your private ip should be ip from your local network (probably 192.168.1.2, but better check it: press windows key+r, type "cmd", enter, type "ipconfig /all", copy and paste contents on the forum)

also:

are you sure your ip is static?

isn't it dynamic?

check your current ip http://whatismyip.com/

Share this post


Link to post

The IP was that yesterday, I reinstalled Windows the night and it's the same IP as yesterday. The IP is 94.111.249.25.

C:\Users\dragonofdark>ipconfig /all 
  
Configuration IP de Windows 
  
   Nom de l'hôte . . . . . . . . . . : groupe-tgmc 
   Suffixe DNS principal . . . . . . : 
   Type de noeud. . . . . . . . . .  : Hybride 
   Routage IP activé . . . . . . . . : Non 
   Proxy WINS activé . . . . . . . . : Non 
  
Carte Ethernet Connexion au réseau local : 
  
   Suffixe DNS propre à la connexion. . . : 
   Description. . . . . . . . . . . . . . : Marvell Yukon 88E8056 PCI-E Gigabit 
Ethernet Controller 
   Adresse physique . . . . . . . . . . . : 00-1E-8C-45-CD-3E 
   DHCP activé. . . . . . . . . . . . . . : Oui 
   Configuration automatique activée. . . : Oui 
   Adresse IPv6 de liaison locale. . : fe80::e571:a427:52e:9412%8(préféré) 
   Adresse IPv4. . . . . . . . . . . : 192.168.1.4(préféré) 
   Masque de sous-réseau. . . . . . . . . : 255.255.255.0 
   Bail obtenu. . . . . . . . . . . . . . : samedi 6 novembre 2010 16:35:08 
   Bail expirant. . . . . . . . . . . . . : mardi 9 novembre 2010 16:35:08 
   Passerelle par défaut. . . . . . . . . : 192.168.1.1 
   Serveur DHCP . . . . . . . . . . . . . : 192.168.1.1 
   IAID DHCPv6 . . . . . . . . . . . : 201334412 
   Serveurs DNS. . .  . . . . . . . . . . : 192.168.1.1 
   NetBIOS sur Tcpip. . . . . . . . . . . : Activé 
  
Carte Tunnel Connexion au réseau local* : 
  
   Suffixe DNS propre à la connexion. . . : 
   Description. . . . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface 
   Adresse physique . . . . . . . . . . . : 02-00-54-55-4E-01 
   DHCP activé. . . . . . . . . . . . . . : Non 
   Configuration automatique activée. . . : Oui 
   Adresse IPv6. . . . . . . . . . . : 2001:0:5ef5:79fd:3cd4:3e30:3f57:fefb(préf 
éré) 
   Adresse IPv6 de liaison locale. . : fe80::3cd4:3e30:3f57:fefb%9(préféré) 
   Passerelle par défaut. . . . . . . . . : :: 
   NetBIOS sur TCPIP. . . . . . . . . . . : Désactivé 
  
Carte Tunnel Connexion au réseau local* 2 : 
  
   Suffixe DNS propre à la connexion. . . : 
   Description. . . . . . . . . . . . . . : isatap.{0D87861B-E919-41B3-997B-55B9 
62AF6761} 
   Adresse physique . . . . . . . . . . . : 00-00-00-00-00-00-00-E0 
   DHCP activé. . . . . . . . . . . . . . : Non 
   Configuration automatique activée. . . : Oui 
   Adresse IPv6 de liaison locale. . : fe80::5efe:192.168.1.4%10(préféré) 
   Passerelle par défaut. . . . . . . . . : 
   Serveurs DNS. . .  . . . . . . . . . . : 192.168.1.1 
   NetBIOS sur TCPIP. . . . . . . . . . . : Désactivé 

Share this post


Link to post

So now you know that when YOU connect locally to YOUR server, you typically use your router address (you found in cmd) and NOT your Internet IP ( http://www.whatismyip.com ). When OTHER people connect they will use your Internet IP.

Now, as for connectivity, make sure the port you use is open on the router, for example 22003 and 22003 + 123. As it says in the wiki this site has guides, http://portforward.com/english/routers/port_forwarding/routerindex.htm . We no longer use ASE, we use http://www.game-monitor.com but the method is the same. Its the port used and port used + 123 to show up on game-monitor (the browse list ingame and the website link above).

Share this post


Link to post

Thanks that help me a lot ! For the ports, I must create 2 forward ports ? Or just 1 with 22003 as public start port and 22003 + 123 as public end port ?

Share this post


Link to post

2 separate forwardings. If you create that range, everything between 22003 and 22126 would be forwarded to you. By the way, on the router, it will ask what IP to send it to. Again it is talking in LOCAL router IPs. That will be your IP in the cmd. To make sense of what you pasted from cmd above, 192.168.1.1 being the router... you got assigned 192.168.1.4 for YOUR specific computer on the router. Your brothers computer would be 192.168.1.5 or something.

1 MORE IMPORTANT THING

Even when you do it right you will fail to connect to your Internet IP. Its because you are the server. If you had MTA on another computer in your house, you could get away with connecting to the IP (I used to do this)... you need a buddy to connect to be absolutely sure. However, if you see your server on the game-monitor website or the ingame server browser, you port forwarded port + 123 correctly. This SHOULD mean you also forwarded the server port correctly, which is required for player connection and sending data back and forth.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.