Seaverns Web Development Coding Security Applications and Software Development Bex Severus Galleries Digital Art & Photography

FreeDDNS – A Dynamic DNS Solution for Everyone

FreeDDNS: A Dynamic DNS Solution for Everyone

Dynamic DNS (DDNS) is a service that automatically updates the IP address associated with a domain name when the IP address changes. This is particularly useful for devices with dynamic IP addresses, such as home routers or servers, where the IP address is not static and can change frequently. Without DDNS, accessing these devices remotely would require manually updating the IP address each time it changes, which is impractical.

What is FreeDDNS?
FreeDDNS is a cost-effective, self-hosted Dynamic DNS solution designed to provide users with a reliable way to map a domain name to a dynamic IP address without relying on third-party services. Unlike traditional DDNS services that often come with subscription fees or limitations, FreeDDNS empowers users to create their own DDNS system using simple PHP scripts and a web server.

How FreeDDNS Works
The FreeDDNS project consists of three core scripts:

  1. fddns.php: This script runs on the local machine and sends periodic requests to a remote server. It includes the local machine’s hostname in the request, allowing the remote server to identify and log the client’s IP address.
  2. access.php: This script runs on the remote server and logs the client’s IP address and hostname. It ensures that the latest IP address is always recorded in a log file (fddns.log).
  3. index.php: This script fetches the logged IP address and hostname from fddns.log and uses it to retrieve and display web content from the client’s machine.

The process is simple:

  • The local machine sends its hostname and IP address to the remote server.
  • The remote server logs this information.
  • When accessed, the remote server uses the logged IP address to fetch content from the local machine, effectively creating a dynamic link between the domain name and the changing IP address.

Why Use FreeDDNS?

  1. Cost-Effective: FreeDDNS eliminates the need for paid DDNS services, saving you money.
  2. Customizable: Since it’s self-hosted, you have full control over the system and can tailor it to your needs.
  3. Reliable: By using simple PHP scripts and a web server, FreeDDNS ensures a lightweight and efficient solution.
  4. Easy to Implement: The scripts are straightforward and can be set up in minutes, even by users with minimal technical expertise.

FreeDDNS is the perfect solution for anyone looking to access their home network, personal server, or IoT devices remotely without the hassle of manual IP updates or expensive subscriptions. Whether you’re a tech enthusiast, a small business owner, or a hobbyist, FreeDDNS offers a reliable, customizable, and cost-effective way to stay connected. Take control of your dynamic IP challenges today with FreeDDNS—your gateway to seamless remote access.

FreeDDNS (Beta) 1.9kb
Download

Coding, Security & Web Development

Senya 2.0 MySQL Database Editor

Senya – MySQL Database Editor

Sleek and easy to use MySQL Database Editor.
Enter Server Configuration Manually Or Automatically From File.

By: K0NxT3D
Version: 2.0.1
URL: http://www.seaverns.com/senya/
File: Senya_2.0.zip
Senya 2.0 Files:
index.php – Main Page
display_table.php – Display MySQL Tables
update.php – Update MySQL Tables
style.css – Default Style
saved_hosts.txt – Example Autoload Configuration File

K0NxT3D

Server Status Monitor PhP Code

PhP Monitor Active and Inactive Servers

This is a simple and no frills way to monitor your servers.
You will need to create the file “urls.txt” in the same folder as the “active-servers.php” file.

Examples – urls.txt:
https://www.my-website.com/
http://localhost/
http://www.my-website.com/some/page.php

Navigate to the active-servers.php file. ( http://www.your-site.com/scripts/active-servers.php)
Online Servers will be Lime and Offline Servers, Red.

active-servers.php

<head>
<title>Active Servers</title>
</head>
<body style=”background-color: #0c0c0c;”>
<div>
<table width=”100%” height=”100%”>
<tr>
<td>
<table style=”margin-bottom: 100%;text-transform: uppercase;”>
<?php
$fn = fopen(“urls.txt”,”r”);
while(! feof($fn)) {
$result = fgets($fn);
$server=gethostbyname(parse_url($result, PHP_URL_HOST));
if (fsockopen($server, 80)){
echo (‘ <tr><td><b><a style=”color: Lime; text-decoration: none;”href=”‘.$result.'” target=”viewer”>’.$result.'</b></td></tr>’. “\r\n”);
} else
{
echo (‘ <tr><td style=”color: #a00000″>’.$result.'</td></tr>’. “\r\n”);
}

} fclose($fn); ?>

</table>
</td>
<td width=”100%”><iframe align=”right” class=”viewpanel” src=”” name=”viewer” frameborder=”0″ width=”100%” height=”600px”></iframe></td>
</tr>
</table>
</div>
</body>

Netcat file transfer chat utility send receive files

Netcat Scheduled Server / Client File Transfer Script

Using Netcat may be “Old School”, but so am I, so I love using Netcat for simple tasks or just chatting without Big Brother paying too much attention. I love using Bold Text too.

These are two separate scripts, one for use on a server, “server.sh” (home pc/Pi/laptop or and server that allows you to use Netcat) and “client.sh”, which you can use on your Android or Laptop etc from a mobile location.
Of course you’re going to have to set permissions and run them. I highly suggest editing out the sleep function and using cron if you’re savvy as this is really meant to update files such as remote sensors, cameras etc.

*Edit the IP address to your server in client.sh.

server.sh

#!/bin/bash
clear
    echo "Server Running."
        mkdir incoming
    date="$(date +'%Y-%m-%d_%H-%M')"
    file="incoming/payload.file"
# Set the Servers Port To Listen On
    echo $(nc -l 1234 > $file)
        mv $file "incoming/$date.payload"
    echo "File Recieved."
    sleep 10
./$(basename $0) && exit

client.sh

#!/bin/bash
clear
mkdir outgoing
    echo "Client Running."
        file="outgoing/payload.file"
# For Demo Only
    touch $file
    echo "Some Data" >> $file
# Set The Server IP and Port To Connect To
    echo $(nc -w 3 192.168.1.XXX 1234 < $file)
    echo "File Sent."
    sleep 60
./$(basename $0) && exit