Method getLocalAddress() returns the local address of the channel. In the case of JChannel, the local address is generated by the bottom-most layer of the protocol stack when the stack is connected to. That means that - depending on the channel implementation - the local address may or may not be available when a channel is in the unconnected state.
public Address getLocalAddress();
Method getChannelName() returns the name of the group in which the channel is a member:
public String getChannelName();
Again, the result is undefined if the channel is in the unconnected or closed state.