Lab3 - Part 5 - ConnectionRefusedError

Lab3 - Part 5 - ConnectionRefusedError

par Francis Murray,
Nombre de réponses : 3

Hello,

I implemented the secure_pmu.py sever application. When testing it with the provided client program Part5_PDC.pyc in MininetVM, I get a ConnectionRefusedError. Here's the traceback on the client side:

Traceback (most recent call last):

  File "Part6_PDC.py", line 26, in <module>

  File "/usr/lib/python3.6/ssl.py", line 1109, in connect

    self._real_connect(addr, False)

  File "/usr/lib/python3.6/ssl.py", line 1096, in _real_connect

    socket.connect(self, addr)

ConnectionRefusedError: [Errno 111] Connection refused


However, I tried to submit my script for scoring, and I get 3/3...

Any idea why it's not working in the VM?


Thanks!

En réponse à Francis Murray

Re: Lab3 - Part 5 - ConnectionRefusedError

par Alaeddine El Fawal,

Hello,

 

A quick answer: it seems to be a port number issue, as the error message does not state anything related to security… further a quick search on google points to a port number issue… so as a suggestion, try first to check that you are using the right port number on the client as well as on the server.

 

Long answer: we are trying to check as well the log on the scoring system to figure out what would be the problem. We will get back to you soon.

 

Best,

Alaeddine


En réponse à Alaeddine El Fawal

Re: Lab3 - Part 5 - ConnectionRefusedError

par Francis Murray,

Hello,

Thank you for your reply.

Regarding your 'quick answer' and the ports: 

  • I am using port 5003 on the server. 
  • You mention checking the port on the client side; is there a way to choose the port on the client side despite the program being already compiled?

I am also sending you a screenshot of a Wireshark capture below for additional information.

Thank you!

Lab3 Part 5 Wireshark capture