Fixed a bug

The URL on the client side for communicating with the server side is now
determined dynamically