Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ Area Editor
➜ General
➜ Changing to port 23/Areas
Changing to port 23/Areas
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1 2
Posted by
| Longbow
(102 posts) Bio
|
Date
| Sun 30 Jan 2005 07:16 PM (UTC) |
Message
| Howdy folks, some friends and I are using Smaug to make our own MUD. I'm wondering if there's an easy way for a Windows user to change ports, and particularly to port 23, the standard gaming port. We are using the precompiled version of Smaug.
I'd be willing if all else fails to try to compile the source code with the changes but I haven't been real successful with Cygwin. Any suggestions?
Thanks, this looks very promising if I can get it to change ports.
Also, I'd like to delete all of the areas and insert our own, but when I try to delete them I can't get the server to start.
Longbow | Top |
|
Posted by
| Robert Powell
Australia (367 posts) Bio
|
Date
| Reply #1 on Sun 30 Jan 2005 08:53 PM (UTC) |
Message
| Do a search of these forums, these are some of the most frequently asked questions, you can change port numbers within the startup script if your using one, or when starting smaug you can specify a port number, smaug.exe 23 assuming your using a windows version.
As for areas there is a current thread on this subject. |
Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated. | Top |
|
Posted by
| Longbow
(102 posts) Bio
|
Date
| Reply #2 on Tue 01 Feb 2005 04:44 PM (UTC) |
Message
| Ok, I'm not quite sure how to change the port like you said. I tried it and nothing happened, it just brought up the typical:
SMAUG - runs as a service, or stand-alone
SMAUG /run - runs stand-alone
SMAUG /start - starts this service
SMAUG /stop - stops this service
SMAUG /install - installs this service
SMAUG /remove - removes (un-installs) this service
SMAUG /status - displays the status of this service
SMAUG /help - displays this information
Also, I tried to follow the Cygwin example given by Nick Gammon but for some reason when I get to the compiling part it won't compile. It says BASH: Make: command not found
I'm compiling it from the src directory and I followed the steps so why isn't it working?
Thanks, Godbless....
Longbow | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #3 on Tue 01 Feb 2005 06:50 PM (UTC) |
Message
| I'm not familar with changing ports on WinSmaug. Make sure when you are finding change port topics, that they are with WinSmaug, not linux.
You need to get the correct (all) packages with Cygwin. You did not get the Make package. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Longbow
(102 posts) Bio
|
Date
| Reply #4 on Sat 05 Feb 2005 01:22 PM (UTC) |
Message
| Ok, I got Smaug compiled and the port changed, but I can't set it lower than port 1204 or something like that. I'd like to set it to port 23, which I know is a common gaming port. Any ideas? | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #5 on Sat 05 Feb 2005 03:53 PM (UTC) |
Message
| What's stopping you? An error? Smaug isn't really meant for the gaming port, since you connect to it via telnet... Can you display post error is happening? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Longbow
(102 posts) Bio
|
Date
| Reply #6 on Sat 05 Feb 2005 10:26 PM (UTC) |
Message
| When I try to use the ../src/smaug <portnumber> it says:
You must choose a port over 1024
Or something like that. Why should it care what port I run it off of?
Thanks,
Longbow | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #7 on Sat 05 Feb 2005 11:30 PM (UTC) |
Message
| Ports below 1024 are reserved for "system" use, as a convention. Eg. 80 for HTTP.
However you should be able to code around that. The smaug executable you download from this site runs as a service and you can't change the port number without recompiling it.
It would be easier to use Cygwin and compile under that, then the port is an argument on the command line. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Longbow
(102 posts) Bio
|
Date
| Reply #8 on Sun 06 Feb 2005 07:53 PM (UTC) |
Message
| Alright, I've got Cygwin and I compiled using the version of the source code that is under the tutorial in the forum. HOWEVER, I cannot set the port to less than 1024 from the cygwin prompt, as I recieve the message about having to choose a port above that number. Is there a code file I need to edit to get around it? I saw somewhere in here a guy who set his to port 22 or something like that.
Thanks for the help!
Longbow | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #9 on Sun 06 Feb 2005 08:02 PM (UTC) |
Message
| I'm pretty sure port 23 is the telnet port, so it may be a bad idea to set it as that. I didn't see any other posts where someone with Smaug used port 23. But yes, search for the line it returns when trying to set port to 23, and change that ifcheck. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Longbow
(102 posts) Bio
|
Date
| Reply #10 on Tue 08 Feb 2005 12:54 AM (UTC) |
Message
| Ok, I'll try that. However, since I'm really new to this type of thing could you give me an example of what you mean when you say "ifcheck"? What exactly do I need to do to that line that is bugging me? :)
Godbless,
Longbow | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #11 on Tue 08 Feb 2005 01:48 AM (UTC) |
Message
| Erm, I assumed the port check was in the code, but I cannot find anything like "You must choose a port" in any *.c or startup files. Maybe it's WinSmaug only. I'm not sure what to tell you. Post your startup script here? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Longbow
(102 posts) Bio
|
Date
| Reply #12 on Thu 10 Feb 2005 11:18 PM (UTC) |
Message
| The startup script is in no way changed from the original as far as I know. If you mean the file labelled startup in the src folder it is as follows:
#! /bin/csh -f
# Set the port number.
set port = 4000
if ( "$1" != "" ) set port="$1"
# Change to area directory.
cd ../area
# Set limits.
nohup
nice
limit stack 1024k
if ( -e shutdown.txt ) rm -f shutdown.txt
while ( 1 )
# If you want to have logs in a different directory,
# change the 'set logfile' line to reflect the directory name.
set index = 1000
while ( 1 )
set logfile = ../log/$index.log
if ( ! -e $logfile ) break
@ index++
end
# Record starting time
date > $logfile
date > ../area/boot.txt
# Record initial charges
# charges >> $logfile
# Run SMAUG.
../src/smaug $port >&! $logfile
# ../src/smaug >>&! $logfile
# Record ending charges
# charges >> $logfile
# # Delete this out if no adb.
# if ( -e core ) then
# echo '$c' | adb ../src/smaug
# endif
# Restart, giving old connections a chance to die.
if ( -e shutdown.txt ) then
rm -f shutdown.txt
exit 0
endif
sleep 15
end
I noticed that under set limits there's a command limit stack 1024k. Is that related at all?
Yall are great! Thanks for being patient with me.
Godbless,
Longbow | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #13 on Fri 11 Feb 2005 01:06 AM (UTC) |
Message
| You said "Or something like that". What is the exact message? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Longbow
(102 posts) Bio
|
Date
| Reply #14 on Sat 12 Feb 2005 02:02 PM (UTC) |
Message
| The exact error message when I use the cygwin prompt from the area folder is as follows:
-------------------------------------
I type: ../src/smaug 23
It says: Port number must be above 1024.
-----------------------------------------
That's all it says. I want to know where it's reading that line from because then I think I could change it, but I can't find it anywhere.
Godbless,
Longbow | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
51,313 views.
This is page 1, subject is 2 pages long: 1 2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top