Consider defaulting to port 8000 for connection() and samples, to take advantage of out of the box REST services.