API update

Updated API to make server IP dynamic should the server ever move.