This pilot clinical trial studies epacadostat before surgery in treating patients with newly diagnosed stage III-IV epithelial ovarian, fallopian tube, or primary peritoneal cancer. Epacadostat may stop the growth of tumor cells by blocking some of the enzymes needed for cell growth.