Acoustic communication is linked to fitness traits in many animals, but under the current scenario of global warming, sound signals can be affected by rising temperatures, particularly in ectothermic organisms such as fishes. This study examines the effect of water temperature in acoustic communication in the two-spotted goby, Pomatoschistus flavescens. To address this, we looked at the effect of different temperatures on the acoustic features of drums produced by males during territorial defence and related it with their auditory sensitivity. We also analysed the differences in acoustic features between male agonistic drums and previously reported male courtship sounds, to better understand how acoustic communication may be affected by different temperature conditions. We recorded two-spotted goby males during territorial intrusions for 10 min at 16 °C, 19 °C, and 21 °C in the laboratory. We found that agonistic drums were shorter, had fewer pulses and shorter pulse periods at higher temperature, in contrast with the peak frequency that remained unaffected. Male agonistic and mating drums (recorded in a previous study) at 16 °C only differed in pulse period, which was higher in mating drums. Hearing thresholds obtained with Auditory Evoked Potentials at 16 °C, revealed higher sensitivity below 400 Hz, matching the main energy of agonistic and mating sounds. Our findings suggest that increasing temperature could potentially affect acoustic communication in this species by reducing the duration of agonistic drums, which might hinder effective communication. Nevertheless, the impact may not be significant as there was a good match between the best hearing sensitivity and the peak frequency range of their calls, which was not influenced by temperature. As fish and other organisms are increasingly threatened by multiple anthropogenic stressors, including warming, future research should address how changes in water temperature impact acoustic communication within a more realistic multi-stressor scenario.