Steam Support Wiki
 
 

Att konfigurera en router som ska användas med en dedikerad server

 
 

Den här sidans innehåll är bevakat av både Steam Support och Steam-användarsamhället - alla länkar till externa sidor bör behandlas med försiktighet.

Steam Support kommer aldrig av någon anledning att begära ditt Steam-kontos lösenord, inte heller kommer du någonsin att bli ombedd att mata in ditt lösenord på någon webbsida.

Ordna en statisk IP-adress

Din server bör använda en statisk IP-adress. Detta kommer att tillåta andra datorer att tillitligt hitta din server när de ansluter sig till routern.

Det enda sättet att ordna fram en extern statisk IP är att betala för en via din Internettillhändahållare (ISP). En statisk IP är viktigt om du hade tänkt att hålla igång din server hela tiden. Att använda en statisk IP gör det lätt för återkommande spelare att hitta din server. Din nuvarande externa IP-adress finns här nedanför:

no_whining.jpg

En intern IP-adress uppför sig precis som en extern, fast med den märkbara skillnaden att du bara är synlig bakom din router. Du måste använda en statisk IP internt. Din router kommer att skicka portar för inkommande anslutningar till en specifik IP-adress. Om du har din IP installerad dynamiskt, kommer den nödvändigtvis inte att skicka portar till din server.

Ordna en statisk IP i Windows XP

  1. Gå till Start > Kör och mata in: cmd för att öppna en kommandotolk.
  2. Mata in följande i kommandotolken: ipconfig/all. Du kommer att se något som är likt detta:
IP-konfiguration för Windows

Host Name . . . . . . . . . . . . : MYCOMP
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No 

Ethernet-kort Anslutning till lokalt nätverk:
Anslutningsspecifika DNS-suffix . :
Description . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Ethernet NIC
Physical Address. . . . . . . . . : 00-80-F6-6A-21-E0
Dhcp Enabled. . . . . . . . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.100
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . :  xxx.xxx.xxx.xxx
                                     xxx.xxx.xxx.xxx
NetBIOS over Tcpip. . . . . . . . : Disabled
  1. Copy down:
    • IP address
    • Subnet mask
    • Default gateway
    • DNS Servers
  2. Right-click on My network places and go to Properties.
  3. Right-click on Local Area Connection and go to Properties.
  4. Select Internet Protocol(TCP/IP) and click on the Properties button.
  5. Select the "Use the following IP address" option and fill in the fields with the respective information you copied out of your IPConfig.
  6. Click OK and exit the network connection page.

Test your internet connection to ensure that you are still able to access the internet. If not, you probably mistyped one of the fields from the IPconfig. Double-check their values. If you need to get back to the internet immediately, you can do so by going back to your TCP/IP properties and selecting Obtain an IP address automatically.


Setting up the Router

Go to your router manufacturer's website and ensure that you are running the most current Firmware available for the router.

  1. Follow the instructions that came with your router to login to it. Typically, this is done by going to either http://192.168.0.1 or http://192.168.1.1 and entering a username and password you have either already specified or can be found in your router's manual. The IP address and login information are different for different routers.
  2. Go to port range forwarding or the equivalent for your router and add a new entry:
Name ServerName
From 27015
To 27015
Check TCP
Check UDP
Destination 192.168.1.100
Enable
  1. Apply the changes and exit the router setup.
  2. If port 27015 does not work, try another port between 27016-27019 or 27021-27032.


Editing the Server.cfg

Next, you must edit your server.cfg file to properly reflect your server's IP address.

  1. Open your server.cfg. (Typically C:\hlserver\valve\server.cfg)
  2. Add to the top of the file:
    IP <your IP address>
    port 27015
    Note:

    If you have a Dynamic IP, from time to time your external IP address will change, especially if you reboot or cycle the power on your modem.

    Each time this happens you must change the IP in your server.cfg to match your new external IP in order for your server to continue working properly.


    Note: When you start your server it will report your internal IP address, not your external IP address.

    To access the server from behind the same router, go to: Steam > Servers > Favorites and click on Add a Server.
    Enter your internal IP address and port setting in this format: 192.168.1.100:27015
    Then you can connect to your server from your Favorites menu.

    For more information on optimizing your server refer to: Optimizing a Dedicated Server
Important:

If you have a server and a client behind the same router, the client cannot connect to the server through the server browser. In fact the server may not be visible in the server browser of the client.

The client must connect to the server using the server's internal IP address.


 
 
  link: Valve Software MediaWiki Logo