The ANTARES detector is currently the largest undersea neutrino telescope. Located in the Mediterranean Sea at a depth of 2.5 km, 40 km off the Southern coast of France, it has been looking for cosmic neutrinos for more than 10 years. High-energy cosmic neutrino production is strongly linked with cosmic ray production. The latest results from IceCube represent a step forward towards the confirmation of a high energy cosmic ray source. The ANTARES location in the Northern Hemisphere is optimal for the observation of most of the Galactic Plane, including the Galactic Center. It has allowed to contribute independently on constraining the IceCube neutrino excess origin as well as, more recently, the flux from the source identified in the Blazar TXS 0506+056. The latest results of ANTARES on such analyses, including point-like and extended sources, diffuse fluxes, transient phenomena and multi-messenger studies, will be presented.