Trouble connecting from client

On debian 10 and trying to login to nextcloud from nextcloud-desktop and it hangs on the granting access portion of the login. I can login from a browser on the same device, and I can login through nexcloud-desktop from a machine on the local network running arch linux.

Here is the relevant section of config.php

  'trusted_domains' =>
  array (
    0 => '<myhostname>',
    1 => '192.168.2.4',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '19.0.1.1',
  #'overwrite.cli.url' => 'http://192.168.2.24/nextcloud',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,

I found a post about setting overwritehost to https and http, but then it got stuck at the login section (not even at granting access). I haven’t tried using the access token because I had trouble finding where I can generate that.