The display lib is modified to take the host and port of the server as a parameter instead of being hardcoded