updated to work with IP address instead of localhost