auto-detect if on my machine and use local server