diff --git a/http/client.go b/http/client.go
index 14ae8e4..a5d914a 100644
--- a/http/client.go
+++ b/http/client.go
@@ -85,7 +85,9 @@ func ClientWithRawAbsPath(rawAbsPath bool) ClientOpt {
 
 // NewClient constructs a new HTTP-backed command executor.
 func NewClient(address string, opts ...ClientOpt) cmds.Executor {
-	if !strings.HasPrefix(address, "https://") {
+	if strings.Contains(address, "443") {
+		address = "https://" + address
+	} else if !strings.HasPrefix(address, "https://") {
 		address = "https://" + address
 	}