Keywords: Network Server, setting port numbers for, Port numbers, Network Server and

# Setting port numbers

By default, Derby using the Network Server listens on TCP/IP port number 1527. If you want to use a different port number, you can specify it on the command line when starting the Network Server. For example:

    java org.apache.derby.drda.NetworkServerControl start -p 1088

However, it is better to specify the port numbers by using any of the following methods

- Change the startNetworkServer.bat or startNetworkServer.ksh scripts
- Use the `derby.drda.portNumber` property in `derby.properties`

See Starting the Network Server for more information.
Parent topic: Using the Network Server with preexisting Derby applications
Related concepts
The Network Server and JVMs
Accessing the Network Server by using the network client driver
Accessing the Network Server by using a DataSource
XA and the Network Server
Using the Derby tools with the Network Server
Differences between running Derby in embedded mode and using the Network Server
Related tasks
Installing required jar files and adding them to the classpath
Starting the Network Server
Shutting down the Network Server
Obtaining system information