In windows or other games, the device recognizes automatically if you switch from speakers to headset and adjusts the sound device to play the sound from the respective output (either speakers or headset)

FFXIV does not seem to be capable of that. It would be a nice feature.

At the moment you have to shut down the game and restart it after you switched speaker<>headset.