# Altering the startNetworkServer script

You can modify the startNetworkServer script in any of the following ways:

- Specify a port number other than the default (1527) by using the `-p <portnumber>` option as shown in the following example:

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

  where 1368 is the new port number.
- Specify a specific interface (host name or IP address) to listen on other than the default (`localhost` by using the `-h` option as shown in the following example:
  Remember: Before using this option, you should run under the Java security manager and enable user authentication.

      java org.apache.derby.drda.NetworkServerControl start -h myhost -p 1368

  where myhost is the host name or IP address.

  On all interfaces, you can specify a host name, IP address or 0.0.0.0 to listen.

Parent topic: Starting the Network Server
Related tasks
Starting the Network Server without using the script
Starting the Network Server from a Java application
Starting the Network Server on IPv6/Ipv4 dual stack Windows machines