Remove hardcoded socketPort from client and instead pass the same via ejs. Removed redundant get endpoint.