# Setting port numbers

By default, the Derby 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` script
- 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 Java Virtual Machines (JVMs)
Accessing the Network Server by using the network client driver
Accessing the Network Server by using a DataSource object
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/modulepath
Starting the Network Server
Shutting down the Network Server
Obtaining system information