I just started experimenting with embedding Jetty in a Java application but I can't work out how to get the remote IP and port number of the client in the onOpen method.

Java Code:
public class ChatWebSocket implements WebSocket.OnTextMessage, Serializable {
    public void onOpen(Connection connection) {
    }
}
According to the javadocs there's no function for getting the endpoint from this connection. Any ideas how to get the IP and port number of the client?

Thanks