There can be many causes for lag and dropping connection on Xbox One. Below are several things you can check to improve this:

  1. Make sure you are using the latest version of AirServer for Xbox One by checking for updates.
  2. Switch on "Limit Mirroring Resolution to reduce bandwidth" in the Display tab of Advanced Settings. This will limit AirPlay and Google Cast to 720p30, while Miracast will be limited to 1080p30. This should improve performance in poor network conditions.
  3. Make sure to restart your Xbox, router, and the device you want to initiate screen mirroring from at least once.
  4. Make sure that your Wi-Fi router is running the latest firmware. In some cases, this can also improve screen mirroring performance and reduce lag.
  5. Use iStumbler (Mac) or NetStumbler (PC) to see which Wi-Fi channels are in use around you, then configure your router to use a channel that is free. You should preferably also configure your router to only use Wi-Fi-n or Wi-Fi-ac (if supported).
  6. Connect your Xbox to your network using an ethernet cable. This will greatly improve reliability, reduce audio stutters and lag.
  7. If you have no way of connecting your Xbox One to the network with a network cable, make sure you are in sufficient range for the wireless network.