Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>MO ExtensionNew to Visual Studio Code? Get it now.
MO Extension

MO Extension

WhoisMO

|
12 installs
| (0) | Free
Computer Networks lab and socket programming snippets for quick study and coding.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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:
    1. Getting the IP address
    2. Getting any host IP address
    3. Getting the hostname from an IP address
    4. Getting a service name from a port and protocol
    5. Port scanner
    6. 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

  1. Open or create a Python file.
  2. Open the Command Palette with Ctrl+Shift+P.
  3. Run Insert SP, Insert PP, Insert UNI, Insert Router, Insert HTTP/HTTPS, Insert DNS, Insert SMTP, Insert FTP, Insert Telnet, or Insert SSH-Config.
  4. The reference code is inserted at the cursor.
  5. 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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft