Overview Version History Q & A Rating & Review
MO Extension
Computer Networks lab helper. It inserts socket-programming reference code into the active editor for lab work and revision.
Commands
Insert SP — all six Socket Programming examples from Lab 03:
Getting the IP address
Getting any host IP address
Getting the hostname from an IP address
Getting a service name from a port and protocol
Port scanner
Simple TCP client/server connection
Insert PP — application programs:
Lab Task 01: simple TCP chat that can also send a small file
Past Paper Question 02: roll-number seat assignment
Insert UNI — universal TCP client-server cheat sheet for adapting Q2-style socket programming questions.
Insert Router — Packet Tracer router setup reference.
Insert HTTP/HTTPS — Packet Tracer HTTP/HTTPS server setup reference.
Insert DNS — Packet Tracer DNS, A record, CNAME, and HTTP test reference.
Insert SMTP — Packet Tracer SMTP/POP3 email setup reference.
Insert FTP — Packet Tracer FTP upload/download setup reference.
Insert Telnet — Packet Tracer Telnet remote switch configuration reference.
Insert SSH-Config — Packet Tracer SSH secure remote switch configuration reference.
Usage
Open or create a Python file.
Open the Command Palette with Ctrl+Shift+P.
Run Insert SP, Insert PP, Insert UNI, Insert Router, Insert HTTP/HTTPS, Insert DNS, Insert SMTP, Insert FTP, Insert Telnet, or Insert SSH-Config.
The reference code is inserted at the cursor.
SP and PP are reference files, not single programs. For a server/client example, copy the server section into server.py and the client section into client.py. Run the server first, then the client in another terminal.
Some exercises need a supporting .txt file. The required filename, location, and sample contents are written in comments in the inserted code. This extension does not create that file for you.