Device communication in PHP

I want to communicate with the Hikvision model number: DS-K1T8003MF using Laravel. When I connect the device to the network, the IP is not accessible via the browser. Can someone help with the necessary configuration?
Below are the necessary configurations:

route:
Route::get(‘/device/ip’, [DeviceController::class, ‘hikvisionIP’]);

Controller:
class DeviceController extends Controller{

public function hikvisionIP()
{

    $client = new Client();
    try {
       // http://localhost:8123/ENDPOINT
        // $response = $client->request('GET', 'http://190.168.1.150:8000/api');
        $response = $client->request('GET', 'http://190.168.1.150:8123/api');
        echo $response->getBody();
    } catch (\Exception $e) {
        echo 'Error: ' . $e->getMessage();
    }
}

}
i recive Error: cURL error 7: Failed to connect to 190.168.1.150 port 8123 after 2050 ms: Couldn’t connect to server (see libcurl - Error Codes) for http://190.168.1.150:8123/api