finding the port numbers in graph_crator.py instead of the application