LoRa Shield Range

I am currently trying to connect two Arduino Unos with each other using dragino shields. The shields are marketed as having a couple kilometers of range. However, when I run my code (attached) I am getting barely two feet of range. Does anyone have any ideas as to how to fix this? If you have extra questions I will do my best to answer them in a timely fashion.

GPSTest2Serv.ino (3.84 KB)

GPSClientWButtons.ino (2.42 KB)

after init it defaluts to 434MHz - if that is not the frequency of your boards you need to set up

  // Defaults after init are 434.0MHz, modulation GFSK_Rb250Fd250, +13dbM
  if (!rf95.setFrequency(868.0)) {
    Serial.println("setFrequency failed");
    while (1);

never attempted to use Lora peer to peer over any distance but I can communicate with my Lora gateway over a few 100 metres at SF7

Two most likely causes of the short range;

You have set the wrong frequency for the modules, i.e. you have 434Mhz modules and have set the frequency in the 868Mhz or 915Mhz bands.

You have operated the modules without antennas fitted and have damaged them.

Did you contact whoever sold them to you for advice ?