Change client example to support urls with a specified port

I noticed that when you were running the client with a specified port (e.g.: localhost:8080) the url was being set to localhost:8080:8000. This is a simple fix that will support both unspecified and specified port on URL location.