Unable to establish connection between ipynb from google colab and local neo4j desktop

Hi ,
Am unable to integrate my google colab notebook with neo4j desktop.Below is the error

ServiceUnavailable: Failed to establish connection to ('::1', 7687, 0, 0) (reason [Errno 99] Cannot assign requested address)

Connection details
graph = Graph("bolt://localhost:7687", auth=("neo4j", "mypassword"))
Please let me know if I need to make any changes in the config file.