System.out.println("registry started:" + symbolicName);
I see the message, but then I get a ConnectionException Connection Refused to host.
Can anyone tell me what I'm doing wrong?
I found this in the API Documentation
Each method of the Naming class takes as one of its arguments a name that is a java.lang.String in URL format (without the scheme component) of the form:
where host is the host (remote or local) where the registry is located, port is the port number on which the registry accepts calls, and where name is a simple string uninterpreted by the registry. Both host and port are optional. If host is omitted, the host defaults to the local host. If port is omitted, then the port defaults to 1099, the "well-known" port that RMI's registry, rmiregistry, uses.
Most importantly this part.
If port is omitted, then the port defaults to 1099, the "well-known" port that RMI's registry, rmiregistry, uses.
That's my guess.
btw, I used the default port 1099.