Bacterial induced inflammatory responses cause pain through direct activation of nociceptive neurons, and the ablation of these neurons leads to increased immune infiltration. In this study, we investigated nociceptive-immune interactions in Drosophila and the role these interactions play during pathogenic bacterial infection. After bacterial infection, we found robust upregulation of ligand-gated ion channels and allatostatin receptors involved in nociception, which potentially leads to hyperalgesia. We further found that Allatostatin-C Receptor 2 (AstC-R2) plays a crucial role in host survival during infection with the pathogenic bacterium Photorhabdus luminescens. Upon examination of immune signaling in AstC-R2 deficient mutants, we demonstrated that Allatostatin-C Receptor 2 specifically inhibits the Immune deficiency pathway, and knockdown of AstC-R2 leads to overproduction of antimicrobial peptides related to this pathway and decreased host survival. This study provides mechanistic insights into the importance of microbe-nociceptor interactions during bacterial challenge. We posit that Allatostatin C is an immunosuppressive substance released by nociceptors or Drosophila hemocytes that dampens IMD signaling in order to either prevent immunopathology or to reduce unnecessary metabolic cost after microbial stimulation. AstC-R2 also acts to dampen thermal nociception in the absence of infection, suggesting an intrinsic neuronal role in mediating these processes during homeostatic conditions. Further examination into the signaling mechanisms by which Allatostatin-C alters immunity and nociception in Drosophila may reveal conserved pathways which can be utilized towards therapeutically targeting inflammatory pain and chronic inflammation.