Improved a bit the sample to get the path and the remote cliente ip