Skip to content

troubleshooting

Introduction

Imagine having a GitHub Pages website. Now, you've migrated to project on another GitHub Pages website. As reports surfaced about users being unable to access the site, the need for a swift redirection from old URLs to the current ones became paramount.

GitHub Invertocat Logo

The catch? The solution had to operate within the constraints of a static web page, using only HTML, CSS, and JavaScript.

While conventional methods like Flask and Frozen-Flask failed, the journey led to a creative solution using HTML and JavaScript. In this blog post, I'll share the step-by-step process of how I navigated through the obstacles and achieved seamless redirection.

Step-by-Step Guide to Identifying and Terminating Processes on Specific Ports

Introduction

This markdown provides a step-by-step guide to identify and terminate processes running on a specific port, catering to both Unix-based and Windows systems.

Handling Processes on a Port

Suppose you encounter an OSError: [Errno 98] Address already in use error while trying to run an application that requires port 8000. This commonly happens when another process is already using the same port.

Method 1: Using curl to Test the Port

One way to check if a process is using port 8000 is by attempting to access it:

curl 127.0.0.1:8000