Assign IP to L4D2 games on unmanaged VDS

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Soulreaper
A semi-regular
A semi-regular
Posts: 26
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Jan 23, 2015 10:39 am

Assign IP to L4D2 games on unmanaged VDS

Post by Soulreaper »

HI

For years I rented servers for L4D2 game always managed VDS and single servers

Now I would like to try an unmanged VDS (ubuntu 14.04)

I hired one and installed one L4d2 game on it, updated it, but how do i assign an IP to the game on the VDS and how would I start that game

Any help or advice would be much appreciated

Thanks in advance
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Assign IP to L4D2 games on unmanaged VDS

Post by soja »

go to the directory that contains srcds_run, there are a few ways to start a server, but this is the easiest way IMO.

./srcds_run -game left4dead2 +map c1m1_hotel +ip 12.34.56.78

Replace the IP address with your IP of course. This will start the server in your current putty session(if you're using that). to shut down the server, do ctrl+c.

If you want to start the server in a screen(apt-get install screen) so you can detach and run the game server in the background, you can use this:

screen -AmdS myservername ./srcds_run -game left4dead2 +map c1m1_hotel +ip 12.34.56.78

Replace myservername with something you will remember so you can reattach the screen with screen -r later.


I apologize if these instructions seem a little unclear, please let me know if you need additional clarification/help.
Not a NFO employee
Soulreaper
A semi-regular
A semi-regular
Posts: 26
Joined: Fri Jan 23, 2015 10:39 am

Re: Assign IP to L4D2 games on unmanaged VDS

Post by Soulreaper »

@soja

Thank you so much, very kind of you to help

I will try what you have suggested tomorrow and will let you know how I get on

much appreciated

:)
Soulreaper
A semi-regular
A semi-regular
Posts: 26
Joined: Fri Jan 23, 2015 10:39 am

Re: Assign IP to L4D2 games on unmanaged VDS

Post by Soulreaper »

@soja

Just to say you suggestion worked like a dream

A couple of things i would like to ask

how to restart the l4d2 game on the server or stop the game

I will add another l4d2 game tomorrow, do i use the same ip for this one

many thanks
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Assign IP to L4D2 games on unmanaged VDS

Post by soja »

To stop the server, you can type this in your terminal to enter the server console(screen)
screen -r myservername
(myservername from when you started the server)

Once in there, you can ctrl+c to close the screen, which will shutdown the server.

If you want to leave the server console without shutting down the server, use ctrl+a+d.

You can use the same IP, the game server will automatically use the next available port. The new server you start up will use 27016 for example, instead of 27015. You can control this on the command line by adding +port, so the server will always boot on that port.

An example to boot up your second server would be:

screen -AmdS myservername2 ./srcds_run -game left4dead2 +map c1m1_hotel +ip 12.34.56.78 +port 27016
Not a NFO employee
Soulreaper
A semi-regular
A semi-regular
Posts: 26
Joined: Fri Jan 23, 2015 10:39 am

Re: Assign IP to L4D2 games on unmanaged VDS

Post by Soulreaper »

@soja

Just to say thank you for you kind help

I now have 4 L4D2 games running on one of VDS

And i will be asking to change my other VDS (4 cores) to unmanaged as I think the games run much smoother and the hit kill ratio is much better

Thank you soja I'm indebted to you :)
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Assign IP to L4D2 games on unmanaged VDS

Post by soja »

My pleasure, I love to help!

If you need anything else please ask :)
Not a NFO employee
Soulreaper
A semi-regular
A semi-regular
Posts: 26
Joined: Fri Jan 23, 2015 10:39 am

Re: Assign IP to L4D2 games on unmanaged VDS

Post by Soulreaper »

Hi

With soja help Ive now have 10 vds up and running L4D2

Ive written small scripts to update them, restart them and so on, and all this works fine

Now I would like to install sourcebans

Ive installed mysql-dfsg-5.0_5.0.96.orig.tar.gz and it says it is running, but im not sure where to go from here

Can anyone explain what I need to do next please

Thank you in advance
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Assign IP to L4D2 games on unmanaged VDS

Post by soja »

I would recommend ordering some web hosting here and using that for MySQL/website hosting. https://www.nfoservers.com/order-webhosting.php

This will have MySQL already installed and configured, all you need to do is make your database and configure your servers!

You can install phpmyadmin on the Autoinstallers tab to manage your database(a lot of guides and tutorials will have you use this).

If you still want to use your VDS for MySQL let me know, or if you have any questions using NFO webhosting ask away!
Not a NFO employee
Soulreaper
A semi-regular
A semi-regular
Posts: 26
Joined: Fri Jan 23, 2015 10:39 am

Re: Assign IP to L4D2 games on unmanaged VDS

Post by Soulreaper »

@soja

What type of webhosting should I order Lite / Standard or Pro?

It will only ever be used for saucebans and maybe a web page

Thanks again for your kind help
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Assign IP to L4D2 games on unmanaged VDS

Post by soja »

The cheapest package(Lite) will serve you well :)
Not a NFO employee
Soulreaper
A semi-regular
A semi-regular
Posts: 26
Joined: Fri Jan 23, 2015 10:39 am

Re: Assign IP to L4D2 games on unmanaged VDS

Post by Soulreaper »

Ive now have the lite package

Is their any guides to this, I hate to keep bothering you but all this part is new to me

Do i need to install any of these?

phpMyAdmin 4.3.6

phpBB 3.0.12

WordPress 4.0

Drupal 7.32

Django 1.5.4
$atanic $pirit
This is my homepage
This is my homepage
Posts: 251
Joined: Tue Jan 28, 2014 5:32 am

Re: Assign IP to L4D2 games on unmanaged VDS

Post by $atanic $pirit »

Depends on your needs. All of those are CMS or bulletin board packages, except phpmyadmin, which is a SQL db utility.

You don't need any of those as per say, but you can install wordpress to setup a basic webpage.
Image
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Assign IP to L4D2 games on unmanaged VDS

Post by soja »

Soulreaper wrote:Ive now have the lite package

Is their any guides to this, I hate to keep bothering you but all this part is new to me

Do i need to install any of these?

phpMyAdmin 4.3.6

phpBB 3.0.12

WordPress 4.0

Drupal 7.32

Django 1.5.4
For a sourcebans website you only need phpmyadmin there :)
Not a NFO employee
Soulreaper
A semi-regular
A semi-regular
Posts: 26
Joined: Fri Jan 23, 2015 10:39 am

Re: Assign IP to L4D2 games on unmanaged VDS

Post by Soulreaper »

Ok im tearing my hair out arggggggg

I made a database using myphpadmin

Ive installed sourcebans on the web server

at the end it said delete this folder? lol what folder

when i try to view the sourcebans on my web server it says page cannot be found

http://pwwebhosting.site.nfoservers.com ... /index.php

SOS please
Post Reply