The influence of flexible walls on the self-diffusion of CH4 in an isolated single walled carbon nanotube, as an example, is studied by molecular dynamics simulations. By simulating the carbon nanotube as a flexible framework we demonstrate that the flexibility has a crucial influence on self-diffusion at low loadings. We show how this influence can be incorporated in a simulation of a rigid na...