Replacing 0000 with localhost