Updated index socket to use current URL as opposed to hardcoded
localhost