localhost:4848 — GlassFish Admin
Port 4848 is the default admin console for GlassFish Server (now Eclipse GlassFish), the reference implementation for Jakarta EE (formerly Java EE). Manage applications, configure resources, and monitor your Java enterprise server.
GlassFish Admin Console:
http://localhost:4848
Default: admin / (no password) | Apps run on :8080
Default Credentials
| Username | Password |
|---|---|
| admin | (blank - no password) |
Security: Set an admin password after first login: asadmin change-admin-password
GlassFish Ports
| Port | Purpose |
|---|---|
| 4848 | Admin Console (HTTPS) |
| 8080 | HTTP (applications) |
| 8181 | HTTPS (applications) |
| 4900 | IIOP (CORBA) |
Start GlassFish
# Start domain
asadmin start-domain
# Start with specific domain
asadmin start-domain domain1
# Stop domain
asadmin stop-domain
# Check status
asadmin list-domains
Admin Console Features
- Applications — Deploy/undeploy WAR, EAR, JAR
- Resources — JDBC pools, JMS, JavaMail
- Configurations — JVM options, logging
- Monitoring — Server stats, request metrics
- Security — Realms, certificates, users
Deploy Application
# Command line
asadmin deploy /path/to/myapp.war
# With context root
asadmin deploy --contextroot /myapp myapp.war
# Undeploy
asadmin undeploy myapp
Troubleshooting
| Problem | Solution |
|---|---|
| Can't access 4848 | Start domain: asadmin start-domain |
| Port conflict | Change in domain.xml or use --adminport |
| Forgot password | asadmin change-admin-password |