21.01.2009, 16:42
Since my last topic got unpinned and lost somewhere in server support (my fault) i have re-created it, with a few extra things.
The Portforwarding
Getting your local IP address:
This is an important part of Port-forwarding, this is the IP address the router forwards packets to from the port you open. The easiest way of getting this IP address is to do the following.
Now, for this step you need to have a rough idea of where about your router/modem is in your house, if you have a wired connection you could just follow the cable (lol), but it's most likely located near a computer in your house (possible your main computer) When you have found your router/modem, look for a name on it, some examples are Netgear/Microcom/Motorola and many more. When you have established the Manufacturer of your router you need to locate the Model number, this is usually printed on the underside of the router/modem and sometimes on the back.
**Make sure you get permission from your parents before portforwarding, i wont being held responsible**
Port-forward.com:
Here come's the actual portforwarding, visit this link, select your router Manufacturer and Model and follow the instructions. Post in this topic if you do have problems. (Remember, the IP address you noted before? You need it here!)
Static Internal IP address:
Follow Westie's tutorial for setting one up. However, some routers have a built in Static IP feature which is based on linking MAC Addresses to an IP address.
Firewalls:
There have been a lot of topics about servers not appearing on the SA-MP master list and most of the time it's a firewall issue.
Make sure your firewall and/or antivirus programs allow samp-server.exe AND announce.exe through them. (Some antivirus/firewall programs have a "theatre/gaming/fullscreen" mode which can be activated in the programs settings.
Testing the Server
Now that you have forwarded your ports and checked your firewall, now it's time to test your server!
Firstly, run the server (samp-server.exe file). If your server closes then check the server_log.txt file.
Now open up your SA-MP client and click the green tick to add a new server.
For the IP:PORT type in 127.0.0.1 and hit enter.
Hopefully you should see your server on the list!
Now you need someone who isn't on your home network to join the server, give them the IP from www.whatsmyip.org and the port number you forwarded (7777 if you haven't changed it).
*
Hopefully they should see your server and be able to join it!
If they can't join it and see Retrieving Info......... then post here for help.
Hamachi
Ok, Hamachi, for those who do not know is a Virtual Private Network service that allows 2 or more computers to connect directly to each other. The advantage of Hamachi is there is no port-forwarding involved, however for anyone to be able to connect to your server they have to have Hamachi installed also and join a Hamachi network (IP beginning with 5), this is not the way to go if you want you server to appear on the internet list (because it wont with Hamachi) and become popular.
DMZ
A DMZ (Demilitarized Zone) is a firewall configuration whereby all ports are opened. This is not a good idea to use, and instead port-forwarding is much preferred. However, if you must use a DMZ then make sure you have a strong firewall on your PC(s).
**********************
Lan Servers Troubleshooting:
(Taken from http://forum.sa-mp.com/index.php?topic=85848.0)
If you are having problems with a LAN server then try the following.
Make sure all the computers on the network are all one the same Workgroup. You can find this out by doing the following:
Open the start menu
Right-click on Computer
Select Properties
A windows should now open with "View Basic Information about Your Computer"
Underneath "Computer name, domain and workgroup settings" you should see "Workgroup: x" (Where X is a name)
Disable any firewalls/antivirus software running on the computers in your network. (This includes Windows Firewall)
Then try running the server and connecting, if this doesn't work then do the following.
For the computers running Vista make sure Network Discovery is turned on, this can be done by:
Opening the start menu
Typing network in the search box then click Network and Sharing Center
Click on the down arrow to the right of Network Discovery
Select the Turn on network discovery radio button, apply changes. (If prompted, restart the computer)
Also, set lanmode to 1 in server.cfg for better sync
***********************
No-IP and DynDNS Services
For people with dynamic IP addresses (ip addresses which change every time your router/modem is reset) there are services out there which accomodate for your needs. 2 of them being No-IP and DynDNS. These services allow you to have a hostname which points to your IP address. What does this mean? Well, if you run a server with a dynamic IP, you can sign up to these services (most are free) and get a name such as myserver.gameserver.com or similar. This means that any user of your server need only type myserver.gameserver.com:PORT into the SAMP client when your IP changes. The host must run a small program on their computer and keep it open for as long as the computer is running, this program send your IP address to the provider (DynDNS/No-IP/etc) and updates your hostname.
********************************
*Quick note:
127.0.0.1 is the IP address you connect to your server
Internal IP address is the IP address people on your home network use to connect to your server
www.whatsmyip.org is the IP address people outside of your home network use to connect to your server.
So do NOT create a server advertisement with an IP address like 127.0.0.1 or 192.168.0.1. It MUST be the IP from www.whatsmyip.org
The Portforwarding
Getting your local IP address:
This is an important part of Port-forwarding, this is the IP address the router forwards packets to from the port you open. The easiest way of getting this IP address is to do the following.
- Open the start menu
- Click Run (XP Only, vista users move onto the next step)
- Type in command.com or cmd.exe and click ok (Vista users type in either command.com or cmd.exe into the small search bar above the start menu button and click on the Command Prompt option)
- You should now see a screen like this
- Type in ipconfig and hit enter
- You should then see lots of text appear, you need to look for the part that shows your current internet adaptor
- When you have found that look for IP Address. . . . . . . . : This is the IP you need, take a quick note of it for later.
Now, for this step you need to have a rough idea of where about your router/modem is in your house, if you have a wired connection you could just follow the cable (lol), but it's most likely located near a computer in your house (possible your main computer) When you have found your router/modem, look for a name on it, some examples are Netgear/Microcom/Motorola and many more. When you have established the Manufacturer of your router you need to locate the Model number, this is usually printed on the underside of the router/modem and sometimes on the back.
**Make sure you get permission from your parents before portforwarding, i wont being held responsible**
Port-forward.com:
Here come's the actual portforwarding, visit this link, select your router Manufacturer and Model and follow the instructions. Post in this topic if you do have problems. (Remember, the IP address you noted before? You need it here!)
Static Internal IP address:
Follow Westie's tutorial for setting one up. However, some routers have a built in Static IP feature which is based on linking MAC Addresses to an IP address.
Firewalls:
There have been a lot of topics about servers not appearing on the SA-MP master list and most of the time it's a firewall issue.
Make sure your firewall and/or antivirus programs allow samp-server.exe AND announce.exe through them. (Some antivirus/firewall programs have a "theatre/gaming/fullscreen" mode which can be activated in the programs settings.
Testing the Server
Now that you have forwarded your ports and checked your firewall, now it's time to test your server!
Firstly, run the server (samp-server.exe file). If your server closes then check the server_log.txt file.
Now open up your SA-MP client and click the green tick to add a new server.
For the IP:PORT type in 127.0.0.1 and hit enter.
Hopefully you should see your server on the list!
Now you need someone who isn't on your home network to join the server, give them the IP from www.whatsmyip.org and the port number you forwarded (7777 if you haven't changed it).
*
Hopefully they should see your server and be able to join it!
If they can't join it and see Retrieving Info......... then post here for help.
Hamachi
Ok, Hamachi, for those who do not know is a Virtual Private Network service that allows 2 or more computers to connect directly to each other. The advantage of Hamachi is there is no port-forwarding involved, however for anyone to be able to connect to your server they have to have Hamachi installed also and join a Hamachi network (IP beginning with 5), this is not the way to go if you want you server to appear on the internet list (because it wont with Hamachi) and become popular.
DMZ
A DMZ (Demilitarized Zone) is a firewall configuration whereby all ports are opened. This is not a good idea to use, and instead port-forwarding is much preferred. However, if you must use a DMZ then make sure you have a strong firewall on your PC(s).
**********************
Lan Servers Troubleshooting:
(Taken from http://forum.sa-mp.com/index.php?topic=85848.0)
If you are having problems with a LAN server then try the following.
Make sure all the computers on the network are all one the same Workgroup. You can find this out by doing the following:
Open the start menu
Right-click on Computer
Select Properties
A windows should now open with "View Basic Information about Your Computer"
Underneath "Computer name, domain and workgroup settings" you should see "Workgroup: x" (Where X is a name)
Disable any firewalls/antivirus software running on the computers in your network. (This includes Windows Firewall)
Then try running the server and connecting, if this doesn't work then do the following.
For the computers running Vista make sure Network Discovery is turned on, this can be done by:
Opening the start menu
Typing network in the search box then click Network and Sharing Center
Click on the down arrow to the right of Network Discovery
Select the Turn on network discovery radio button, apply changes. (If prompted, restart the computer)
Also, set lanmode to 1 in server.cfg for better sync
***********************
No-IP and DynDNS Services
For people with dynamic IP addresses (ip addresses which change every time your router/modem is reset) there are services out there which accomodate for your needs. 2 of them being No-IP and DynDNS. These services allow you to have a hostname which points to your IP address. What does this mean? Well, if you run a server with a dynamic IP, you can sign up to these services (most are free) and get a name such as myserver.gameserver.com or similar. This means that any user of your server need only type myserver.gameserver.com:PORT into the SAMP client when your IP changes. The host must run a small program on their computer and keep it open for as long as the computer is running, this program send your IP address to the provider (DynDNS/No-IP/etc) and updates your hostname.
********************************
*Quick note:
127.0.0.1 is the IP address you connect to your server
Internal IP address is the IP address people on your home network use to connect to your server
www.whatsmyip.org is the IP address people outside of your home network use to connect to your server.
So do NOT create a server advertisement with an IP address like 127.0.0.1 or 192.168.0.1. It MUST be the IP from www.whatsmyip.org