How to connect esp32 using wifi?

I want to connect ESP32 using wifi and ESPhome,but I can’t connect it.
I have error below.
Please teach me how to solve it.

I use Raspberry Pi 4 on the homeassistant OS.
I can connect wifi with homeassistant.

INFO Reading configuration /config/esphome/esp32.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing esp32 (board: esp32dev; framework: arduino; platform: platformio/espressif32 @ 3.5.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- <AsyncTCP-esphome> 1.2.2
|-- <WiFi> 1.0
|-- <FS> 1.0
|-- <Update> 1.0
|-- <ESPAsyncWebServer-esphome> 2.1.0
|   |-- <AsyncTCP-esphome> 1.2.2
|-- <DNSServer> 1.1.0
|-- <ESPmDNS> 1.0
RAM:   [=         ]  12.6% (used 41180 bytes from 327680 bytes)
Flash: [=====     ]  48.5% (used 889174 bytes from 1835008 bytes)
========================= [SUCCESS] Took 8.56 seconds =========================
INFO Successfully compiled program.
INFO Connecting to 150.65.204.125
ERROR Connecting to 150.65.204.125:3232 failed: [Errno 111] Connection refused

yaml

Is this your first time attempting to flash this ESP32?

The initial flashing has to be done with a cable. After that you can do OTA.

Thank you for reply!

Yes, this is my first time.
ok, I will try it!