If you perform Jumuah in other city going there by train it is better but it is not wajib on you to go there. Zuhar salah is fardh on you at your place. So, you along with your friend by calling Azan and Iqamah perform Zuhar, this is the ruling for both of you.
However, if you reside in city, and when you both are joined by other two Muslims, then Jumuah salah is fardh on you. One will lead Salah and other three would perform salah behimd him.
Allah (Subhana Wa Ta’ala) knows Best
Darul Uloom Deoband