Appium client can't connect to Appium server locally

I’m using mac, version 10.14.6, Appium v 1.15 and Java 8
I launch Appium as application and then trying to launch my autotests, but there is a fail when Java tries to create instance of AndroidDriver
driver = new AndroidDriver(url, desiredCapabilities);
look at the screenshot with capabilities

The stacktrace

Caused by: org.openqa.selenium.WebDriverException: Connection refused (Connection refused)

Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:17:03’
System info: host: ‘build-mac’, ip: ‘fe80:0:0:0:182d:c3ec:3e3:65fd%en0’, ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.14.6’, java.version: ‘1.8.0_231’
Driver info: driver.version: SelenideDriver
at io.appium.java_client.remote.AppiumCommandExecutor.lambda$5(
at java.util.Optional.orElseGet(
at io.appium.java_client.remote.AppiumCommandExecutor.execute(
at org.openqa.selenium.remote.RemoteWebDriver.execute(
at io.appium.java_client.DefaultGenericMobileDriver.execute(
at io.appium.java_client.AppiumDriver.execute(
at org.openqa.selenium.remote.RemoteWebDriver.startSession(
at io.appium.java_client.AppiumDriver.startSession(
at org.openqa.selenium.remote.RemoteWebDriver.(
at io.appium.java_client.DefaultGenericMobileDriver.(
at io.appium.java_client.AppiumDriver.(
at io.appium.java_client.AppiumDriver.(
at com.whimstay.automation.core.drivers.DriverManager.createDriver(

I guess it’s probably due to Mac security policy, because on Windows everything is okay.
What should I do to fix the issue?

Had to specify the URL like this http://localhost:4723