This problem is solved in Chemical Engg by Coulson and Richardson,3rd edn., Vol 1, chapter on heat transfer. If you can accept the approx solution where the heat transfer at the far tip of this pipe is ignored, and we assume no convection currents within the pipe (ie. the natural convection current is only by flow of air over the external surface), then the solution to this is given by
θ/θ1=cosh[m(L-x)]/cosh(mL)
where θ = (Temp on pipe surface at position x) - bulk air temp; θ1 = (Temp on pipe at x=0) - bulk air temp - units in deg K
m = [h.b / (k.A)]^0.5, where h is the sum of convective and radiative heat transfer coeff, averaged out over the length of the pipe (w/m2/degK), b = external perimeter or circumference of this pipe in metres, k=thermal conductivity of the pipe metal, w/m/degK, A=cross sectional area of the pipe metal wall, m2
L = length of pipe where θ approaches zero, which theoretically is ∞
x = length of pipe in axial direction
Values for h can be found in Perry's Chem Engg Handbook, 7th edn., page 5-14, table 5-2.
Play around with trial and error values for L and see what values give reasonable approaches to this value.
If you have any specific clarification requests, write back on this same thread.