Lab 3 Part 3 - Can't connect to the server

Lab 3 Part 3 - Can't connect to the server

by Mathilde Louise Marie Hermet -
Number of replies: 3

Hello,


My programe can'r connect to the server, I try it through docker container, then on a th Provided VM, I have try to launch it by running the run dual server.pyc, then p3server v4.pyc or p3server v6.pyc.

But it still impossible to connect. I even try to replace host by it's ip value to see if it was a localhost problem but my conclusion is that I must have missed something in the way I have to run the PMU server.

My last try output :

Traceback (most recent call last):
  File "PDC.py", line 11, in <module>
    sock.connect(("127.0.0.1", PORT))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "PDC.py", line 14, in <module>
    sock.connect(("::1", PORT))
ConnectionRefusedError: [Errno 111] Connection refused


Usually I have the same error but with sock.connect((HOST, PORT)) instead.


Best,


Mathilde

In reply to Mathilde Louise Marie Hermet

Re: Lab 3 Part 3 - Can't connect to the server

by Alaeddine El Fawal -

Hello,

 

First, it does not seem to be a DNS issue, I can guess that you have already configured the local DNS as required in the PDF.

 

I think it is port issue, are you sure you are using port 5004?

So please check the port number, if this does not work, I need to see a snippet of your code.

 

Good luck,

Alaeddine


In reply to Mathilde Louise Marie Hermet

Re: Lab 3 Part 3 - Can't connect to the server

by Orégane François David Desrentes -

Hello!

I have the same problem, did you find a solution?

Orégane