---
title: "Discussion on \"I Built a TCP Port Scanner in Python - Scanning Only Localhost\" | Hashnode"
description: "Discussion on \"I Built a TCP Port Scanner in Python - Scanning Only Localhost\". Built a Python TCP port scanner for localhost using socket. Scans ports 1-1024, detects open ports ethically. Full code on GitHub."
url: "https://hashnode.com/posts/port-scanner-python-localhost/6a830ae01fb1bf569dc9001a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [I Built a TCP Port Scanner in Python - Scanning Only Localhost](https://iot-security-lab.hashnode.dev/port-scanner-python-localhost?utm_source=hashnode&utm_medium=feed)

Built a Python TCP port scanner for localhost using socket. Scans ports 1-1024, detects open ports ethically. Full code on GitHub.

Aug 17 · 1 min read · iot-security-lab.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#cybersecurity](https://hashnode.com/tag/cybersecurity)
-   [#networking](https://hashnode.com/tag/networking)
-   [#socket](https://hashnode.com/tag/socket)
-   [#beginner](https://hashnode.com/tag/beginner)

## Written by

[Đăng Đỗ](https://hashnode.com/@dndang)

@dndang · Hanoi, Vietnam

  
[View profile](https://hashnode.com/@dndang)

I learn by breaking and fixing my own IoT lab. No expert, just a student documenting the journey from zero to IoT Security Intern.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
