dragonofdark 0 Posted November 5, 2010 (edited) 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 December 12, 2010 by Guest Share this post Link to post
dzek (varez) 1 Posted November 5, 2010 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
dragonofdark 0 Posted November 5, 2010 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
dzek (varez) 1 Posted November 5, 2010 disable all firewalls. after doing this properly - it should work. Share this post Link to post
dragonofdark 0 Posted November 5, 2010 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
dzek (varez) 1 Posted November 5, 2010 192.168.X.X is local ip - visible only on your LOCAL network, not visible from internet. Your global ip - http://whatismyip.com/ post your mtaserver.conf file pls Share this post Link to post
dragonofdark 0 Posted November 5, 2010 There is the .conf file : http://www.megaupload.com/?d=4YC3I0S5 Share this post Link to post
Towncivilian 14 Posted November 5, 2010 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
dzek (varez) 1 Posted November 5, 2010 File is temporary unavailable Cool! Share this post Link to post
dragonofdark 0 Posted November 6, 2010 (edited) 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 : 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 November 6, 2010 by Guest Share this post Link to post
dzek (varez) 1 Posted November 6, 2010 replace: 94.111.249.25 with you don't need this (just read description!) Share this post Link to post
dragonofdark 0 Posted November 6, 2010 (edited) 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 November 6, 2010 by Guest Share this post Link to post
dzek (varez) 1 Posted November 6, 2010 you need to PROPERLY forward your ports now Share this post Link to post
dzek (varez) 1 Posted November 6, 2010 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
dragonofdark 0 Posted November 6, 2010 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
dzek (varez) 1 Posted November 6, 2010 your local ip: 192.168.1.4 try to set it instead of 94.111 .... on this: http://www.imagup.com/data/1289059165.html Share this post Link to post
dragonofdark 0 Posted November 6, 2010 Now I can connect to the server and play but with my local IP... Does anyone can connect on my server ? Share this post Link to post
dzek (varez) 1 Posted November 6, 2010 what is your current ip? http://whatismyip.com/ Share this post Link to post
dzek (varez) 1 Posted November 6, 2010 looks like it doesnt work (btw: i cant run mta now, checked with game-monitor.com) edit: try to restart your router edit2: you can test your server connectivity here: http://mta.dzek.eu/test.php Share this post Link to post
dragonofdark 0 Posted November 6, 2010 Dead with 94.111.249.25 Dead with 192.168.1.4 Dead with 94.111.1.4 Share this post Link to post
Ransom 10 Posted November 6, 2010 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
dragonofdark 0 Posted November 6, 2010 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
Ransom 10 Posted November 6, 2010 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