Change Sybase port

Hello.

We have a client that runs a Servoy runtime application. The Sybase server does not start and on the log file it says:

Trying to start TDS (TCPIP) link …
Unable to start on default port; starting on port 49152 instead

Maybe the 2638 port of the client machine is in use, so I should change the Sybase port. I tryed to modify the sybase configuration file like this:

-ti 0 -x tcpip{port=4444} -qs -qw -o sybase_db/sybase_log.txt

but I get an error when the server tryes to start. In my Sybase log file I have:

I. 06/21 15:40:23. Starting on port 4444
I. 06/21 15:40:23. Server name already in use
I. 06/21 15:40:23. TCPIP communication link not started
I. 06/21 15:40:25. The UDP listener failed to shutdown cleanly within the timeout period
E. 06/21 15:40:25. A database server with that name has already started

Do you know what I did wrong and how can I change the default port of Sybase.

Thank you for your help,
Cristina.

Are you sure that there is not another instance of iAnywhere running? Maybe left off from a Servoy Developer Session.
Looks strange that another app is using that very port.

You didn’t mention the operating system, is the machine running windows?
If so take a look at the antivirus software, Norton is well known to be causing a lot of troubles.

In my opinion changing the port for iAnywhere should be your last resort, try to check what is causing the problem first.

When the server starts, it does a broadcast to see if there are any other servers running on the network with the same name. The message you are seeing:
"A database server with that name has already started " means that it found one. Changing the port will not make a difference.
You can force a server to start even if there are other servers on the network with the same name using tcpip parameters on the server commandline (dobroadcast=no). However, then you need to be very careful with your client application connect strings to ensure you connect to the correct server.