Raspberry Hostpsot e Mqtt server

Job ID: 31010855

Budget: $10 – $11 USD

I set up a hotspot on a Raspberry pi 3 with a wifi network interface. Is it possible to connect the Raspberry Pi itself to the hostspot on it?
I need this because I have an ESP8266 connected to the hostspot on the Rasp and I have Mosquitto installed on the Rasp. The ESP can connect to the hotspot but not to the Mosquitto server. Who can help me?