Added the ip address to connect to as input argument of loadModule function