# Add Server Instance Wizard: GlassFish Domain Name/Location

You see this page of the Add Server Instance wizard when you specify details to register an instance of GlassFish 3.x with the IDE. To register a server instance, you specify the properties of a local or remote domain.

Use this page to specify the details of the local or remote domain by selecting one of the following options.

Element | Description
--- | ---
Register Local Domain | Choose an existing domain from the dropdown list or create a new domain by typing the domain name in the text field.
Register Remote Domain | Enter the following information for the remote domain:
Host Name | Enter the host name or IP address for the remote Glassfish 3 server.
Admin Port | Enter the port number used to communicate with the remote server. The default port is 4848.
Target | Optional) Enter a value that is used to identify a cluster and/or stand-alone instance. This value will be used as the value for the target option when running server administration tasks from the IDE. For example, if you have a cluster identified as cluster1 and enter cluster1 as the Target value, when you deploy an application from the IDE to the server the application will be deployed to every instance in the cluster (asadmin deploy --target cluster1 --name myapp myapp.war). When no Target value is specified (default) all commands will be applied to the domain administration server instance.
Username | Type the username for the server instance.
Password | Type the password for the server instance.

Click Finish to add the instance to the list of servers in the Services window.

Note: When you register an existing domain, the IDE uses the port numbers and other properties specified in the domain configuration.

Note: A username and password are required to work with a remote instance of GlassFish Server 3.1.2. To accept remote admin requests the secure administration feature on the remote instance must be enabled. The secure administration feature cannot be enabled if any admin accounts on the remote instance have an empty password.

Related Topics

Developing Applications with NetBeans IDE,

Copyright © 2016, Oracle and/or its affiliates. All rights reserved.