Changing tbaMUD's port

The question came up today so wanted to post it here for future reference.


First if you use autorun you need to change it in the appropriate autorun file:

i.e. the majority of MUD's will have to edit the autorun file line 37.


autorun:37:PORT=4000

autorun.cmd:21:PORT=4000

autorun.pl:25:$port = 4000;

autorun.sh:36:PORT=4000


Then go to the src folder and change config.c:


config.c:199:ush_int DFLT_PORT = 4000;


make and then reboot the game and connect.