1

Topic: [MISC] Accessing the external console / econ

:: Setting it up

I assume you already know how to setup a server, if you don't, please read this or this.

The settings you need to know to set up the econ are:

ec_port (Port to use for the external console)
ec_password (External console password)
ec_bantime (The time a client gets banned if econ authentication fails. 0 just closes the connection)
ec_auth_timeout (Time in seconds before the the econ authentification times out)
ec_output_level (Adjusts the amount of information in the external console)

After adding them to your config file, launch the server.


:: Accessing the econ

In some computers (running Windows), telnet may be disabled by default.
Open the Control Panel and go to Programs and Features.
Click on "Turn Windows features on or off" and in the Windows Features dialog box, tick Telnet Client check box.
http://i52.tinypic.com/2yyxr3s_th.png http://i54.tinypic.com/29vncao_th.png

Open up the command line and type: (If you are using Windows: go to Start > Run > type "cmd" > ok.)

telnet localhost *port*
(Replace *port* with the one you set up in the cfg)

Type in the password and there you go. smile


You may also use puTTY to log in. Download it here.
Open puTTY.exe. Check "Telnet", type "localhost" in IP Address' box and the port you set up. Hit "Open".
http://i53.tinypic.com/35kjx42_th.png



Done. smile

check out these maps: infiltrate - choco - dustycloud

2 (edited by DARK HUNTER 2011-08-02 12:53:22)

Re: [MISC] Accessing the external console / econ

Very nice. Thanks for the tut. ^_^
Now we have 3 consoles: Local;Remote and External big_smile

Once in a century...

3

Re: [MISC] Accessing the external console / econ

For unix-like operating systems just use "nc <ip> <port>" to connect, simply type your commands afterwards. (nc stands for netcat), you can use it to write scripts too.
For example, assume we have a file that we want to have executed, let's say it's "script", then you could use this command line (for bash):

echo "<password>" | cat - script | nc <ip> <port>"

4 (edited by sl 2011-08-02 23:32:28)

Re: [MISC] Accessing the external console / econ

The econ isnt comptible with IPv4 Ips (or adresses)


my hosts:
::1            localhost
127.0.0.1        ipv4.test
::1            ipv6.test

localhost and ipv6.test works well.
127.0.0.1 and ipv4.test does not work hmm

edit: ops, its working with ec_bindaddr 127.0.0.1

5 (edited by 2013-05-07 12:04:22)

Re: [MISC] Accessing the external console / econ

why doesn't it work for me  sad( it says failed to connect to localhost

C:\Users\mustafa>telnet localhost 8303
Connecting To localhost...Could not open connection to the host, on port 8303: C
onnect failed

6

Re: [MISC] Accessing the external console / econ

sl wrote:

edit: ops, its working with ec_bindaddr 127.0.0.1

I think that what sl noticed is quite interesting and should be written in the first post with the other directives. The ec_binaddr is a quite useful feature.

ec_bindaddr 127.0.0.1 => only connections allowed in local
ec_bindaddr 45.78.127.32 => only connections allowed on the ip 45.78.127.32
ec_bindaddr 0.0.0.0 => possible from anywhere (default)

Need a tool to manage your servers? teeman
<3

7

Re: [MISC] Accessing the external console / econ

floyd wrote:
sl wrote:

edit: ops, its working with ec_bindaddr 127.0.0.1

I think that what sl noticed is quite interesting and should be written in the first post with the other directives. The ec_binaddr is a quite useful feature.

ec_bindaddr 127.0.0.1 => only connections allowed in local
ec_bindaddr 45.78.127.32 => only connections allowed on the ip 45.78.127.32
ec_bindaddr 0.0.0.0 => possible from anywhere (default)

Default is localhost (aka 127.0.0.1 for IPv4 and ::1 for IPv6), see src/engine/shared/config_variables.h:96.

8

Re: [MISC] Accessing the external console / econ

heinrich5991 wrote:
floyd wrote:
sl wrote:

edit: ops, its working with ec_bindaddr 127.0.0.1

I think that what sl noticed is quite interesting and should be written in the first post with the other directives. The ec_binaddr is a quite useful feature.

ec_bindaddr 127.0.0.1 => only connections allowed in local
ec_bindaddr 45.78.127.32 => only connections allowed on the ip 45.78.127.32
ec_bindaddr 0.0.0.0 => possible from anywhere (default)

Default is localhost (aka 127.0.0.1 for IPv4 and ::1 for IPv6), see src/engine/shared/config_variables.h:96.

You are right, thanks for the clarification smile

Need a tool to manage your servers? teeman
<3

9

Re: [MISC] Accessing the external console / econ

I can not find the ec_*  commands in 0.6.2 are they removed ?
I typed them into rcon but it does not know these commands. yikes

And could anyone explain me how to use them with linux exactly?

Luck is allowed

10

Re: [MISC] Accessing the external console / econ

You put them in .cfg not rcon

11

Re: [MISC] Accessing the external console / econ

Thank you Broken it is working now.
I just was confused because in 0.6.1 ec_* commands were accessible in rcon too.

Luck is allowed

12

Re: [MISC] Accessing the external console / econ

Why need the external console

I'm a god.

13 (edited by ThisUserIsTee5 2013-11-02 14:50:04)

Re: [MISC] Accessing the external console / econ

wow, some peolpe dont uses the econ to make up a server... some peolpe check out Teeworlds directory and they open teeworlds_srv (server)

mad I HATE PEOPLE WHO USE SPINBOT OR AIMBOT, they dont have courage to play the normal Teeworlds... THEY ARE A -(COW)O
                                                     |      |

14 (edited by Broken 2013-11-02 20:28:33)

Re: [MISC] Accessing the external console / econ

It's mainly useful if you get banned or passworded out of your own server and don't want to restart, or for rogue admins.

15

Re: [MISC] Accessing the external console / econ

its also useful for accessing the server with other tools like a website.

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^

16

Re: [MISC] Accessing the external console / econ

Sushi Tee wrote:

its also useful for accessing the server with other tools like a website.

anybody already did it?
I've tryed to do it with php, but it sux on opening telnet connection sad

17

Re: [MISC] Accessing the external console / econ

i did it with a telnet client running in background which gets automatically started when needed.

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^