changing ws references to use remote address