GIAC
GPYC · Question #36
A connection between a python raw socket server and a netcat client is being made over port 1100 on the same computer. The last command in the Python terminal is: >>>…
The correct answer is D. Nothing, port 1100 is too low to bind the python server to. You've hit your limit · resets 1pm (America/New_York)
Network & Web Programming
Question
A connection between a python raw socket server and a netcat client is being made over port 1100 on the same computer. The last command in the Python terminal is:
connection.remoteip=pyserver.accept() In the netcat terminal the following 2 lines were typed:
nc 127.0.0.1 1100 This is a test
What needs to be typed in the python terminal to display the input from the netcat session?Options
- ANothing, as the connection is complete
- Bconnection.recv(1024)
- Cprint(remoteip)
- DNothing, port 1100 is too low to bind the python server to
How the community answered
(33 responses)- A15% (5)
- B9% (3)
- C6% (2)
- D70% (23)
Explanation
You've hit your limit · resets 1pm (America/New_York)
Topics
#raw sockets#port binding#socket accept#network server
Community Discussion
No community discussion yet for this question.