diff --git a/src/main/java/com/github/wasiqb/coteafs/appium/service/AppiumServer.java b/src/main/java/com/github/wasiqb/coteafs/appium/service/AppiumServer.java index 121eb65..5046fc6 100644 --- a/src/main/java/com/github/wasiqb/coteafs/appium/service/AppiumServer.java +++ b/src/main/java/com/github/wasiqb/coteafs/appium/service/AppiumServer.java @@ -227,8 +227,10 @@ private String getUrl () { .append ("@") .append (this.setting.getHost ()); } else { - sb.append (this.setting.getHost ()) - .append (":") + sb.append (this.setting.getHost ()); + } + if (this.setting.getPort () > 0) { + sb.append (":") .append (this.setting.getPort ()); } return sb.toString ();