If a long hollow copper wire carries a current, then the magnetic field is produced
inside the pipe only
outside the pipe only
both inside and outside
nowhere
Inside a hollow pipe carrying current, the magnetic field is zero, since according to ampere's law
But for external points, the current behaves as if it was concentrated at the axis only, so outside,
Thus the magnetic field is produced outside the pipe only.