How to Turn a Computer Into a Server

Are you looking for how to turn a computer into a server? Whether you’re looking to host your own website, set up a home network, or create a personal cloud, turning your computer into a server can be a great way to get more out of your hardware.

Before diving into the process, it’s important to understand what a server is and what it can do. A server is a computer or system that manages network resources.

In simpler terms, a server is a computer that is specifically designed to handle requests from other computers or devices. These requests can include things like serving up a website or managing a database.

The process of turning a computer into a server can vary depending on the specific needs of the user, but generally involves installing server software, configuring settings and preferences, and connecting the server to the network.

It’s also important to consider the hardware requirements for the server, as certain tasks may require more processing power or memory.

But don’t worry, even if you’re not a tech expert, with the right guidance and resources, anyone can turn their computer into a server.

In this blog post, we will go over the step-by-step process of setting up a server, from choosing the right software and hardware to configuring and securing your server for optimal performance.

So, whether you’re a small business owner, a student, or just someone looking to take control of their own network, this guide will show you how to turn your computer into a powerful and efficient server.

Read More: What is a Domain?

Read More: What is a Hosting?

What needs to turn a computer into a hosting for free?

We will use Xampp and Packetriot. Xampp is a local server that mimics hosting and makes your computer a local host or Hosting server.

Packetriot creates a secure tunnel between your local host and the Internet, so that you can publish your website to the Internet. And then any person sitting in any corner of the world will be able to see your website in the Internet.

If you are a student and just want to learn how to do website development or how to use WordPress, then follow the process mentioned further in this article. But if you want to make online income by creating a website or blog, then you have to purchase a domain and hosting.

Before you get started, there are a few things you’ll need to have on hand. The first and most important is a computer that meets the minimum requirements for the type of server you want to create.

For example, a web server will need more memory and storage than a file server. Additionally, you’ll need a stable and fast internet connection, as well as a static IP address.

Setting up your computer as a web server

The most common type of server people create is a web server. This type of server allows you to host your own website, giving you full control over the design and functionality of your site. To set up your computer as a web server, you’ll need to install software. These are open-source web server software that can be easily installed on your computer.

How to make your computer a hosting by using Xampp?

First of all we have to download and install the Xampp server on our PC.

Step 1- How to Download Xampp?

To download Xampp, you need to visit the website .

Here you can see the option to select different operating systems. Now select the operating system that you have.

Xammp will start downloading as soon as the operating system is selected. If the download does not start automatically, then click on the “Click Here” button.

Step 2- How to Install Xampp?

As soon as the download is complete, install Xampp on your pc by clicking on the Xampp setup file. The installation process is simple. All you have to do is click on the next button, it is better not to change anything here.

Once the installation is complete, Xampp control panel will open. You will get to see different services, from here start Apache and MySQL.

As soon as it starts, you will get to see the default ports of Apache and MySQL.

To check if Apache is working properly or not, type “localhost” in your web browser and press enter.

If this default page of Apache is opened then everything is fine.

Step 3- How to Download WordPress?

Now go to, and download WordPress from here. After clicking on the Get WordPress button, you will see the download button. WordPress files will be downloaded in zip format, extract the files and for this there are many free softwares, like Winrar.

Step 4Install WordPress

Now install WordPress, but before that set up the database, so that WordPress can use that database. And for this go to the Dashboard of Localhost. For that, type “localhost/dashboard” in your web browser and press enter. In the top right side, click on the phpMyAdmin button.

Here create a database for WordPress, so that we can install WordPress. So, click on “New”.

Then, give a name to the database, you can name anything according to you. And as soon as you click on the create button, the database will be created.

The database has been created. Now create a user account. For this, click on Privileges, then click on the “Add User Account”. Then a username and password have to be given.

Keep in mind that the checkbox of the Grant All Privileges database is checked. Then click on the Go button below. And your user account will be created. 

Step 5- Install WordPress in Apache Server

Now install WordPress in Apache server. For this copy the files of WordPress. These are the same files that you downloaded in zip format from

You can find all these files in the WordPress folder. You can copy by right clicking on the folder and clicking on the copy button. Or you can copy by pressing ctrl+c button. The keyboard shortcut of copy is ctrl+c.

Now paste this folder where Xampp is installed. Inside the Xampp folder, you will find another folder named Htdocs, open this folder. And here paste the WordPress folder. The keyboard shortcut of paste is ctrl+v.

After this, go to your browser and type “localhost/wordpress”. On pressing enter, the installation page of WordPress will open. After selecting the language, click on the Continue button, and then click on the Let’s Go button.

Now configure the database, the database that you created, the name of that database has to be given now. And then, give the username and password of the user account that you created. After that click on the submit button. 

And then after clicking on the run the installation button, you will be asked the details of your website like what will be the title of your website, what will be the username and password of your WordPress dashboard, all this.

So in the title put your desire title. And set a username and password. As soon as you click on the Install WordPress button, the installation will begin, and within a few seconds WordPress will be installed.

After WordPress is installed, the login button will show to log in to the WordPress dashboard, click on the login button, And login with the same username and password that you have set for your WordPress dashboard. You have made your own website.

Step 6- Customize WordPress Website

Now customize the website and make a good looking website. To change the theme of the website, go to the Themes section inside Appearance.

Thousands of themes will appear. Change the design of your website by installing and activating any one of these themes. Now customise the theme to make it better.

So the website has been created, but now it is on the local host. Only you can open and view the website from your computer.

Now use packetriot to publish the website on the internet. The packet creates a secure tunnel between the local host and the Internet, so that you can securely publish the website created in the local host to the Internet.

Step 7- How to Download Packetriot?

At first go to the website of Packetriot. Website URL is And then create a free account in Packetriot by clicking on the Join Free button.

After login, come to the Dashboard of Packetriot. Now click on the download button above. And according to your operating system, download Packetriot.

Step 8- Packetriot Setup

Now extract the downloaded Packetriot zip file (packetriot exe file) using winrar.

Now add this directory to the path variables, so that you can access this tool from any of your directories.

For this, copy the path by selecting it, by pressing ctrl + c. In the search bar of the start menu, search by typing environment variables.

A popup will open, here click on Environment Variables. Double click on the path inside user variables and by clicking on the New button, paste the copied path here. Now click on OK, OK and OK again.

Now open the command prompt on your computer and type “pktriot.exe”. You will get to see the usage instructions as soon as you click on the enter button.

So, here first of all configure packetriot and for this type “pktriot.exe configure”.

On pressing enter, the path of the configuration file will be shown, select it. Now fill your login details here. After that enter your email ID and password with which you created your account in packetriot.

After authenticating, select your server location. And that’s all, the configuration is completed.

Here you are showing your host name, which is only assigned to you, and it will be useful later.

Now change the tunnel name of packetriot. And for that, type “pktriot.exe edit –name ‘rajdeep_tunnel’” and press enter.

That’s it. Tunnel name has changed.

To check whether the tunnel name has been changed or not, click on the Tunnels button in the Dashboard of Packetriot. Here you will see the Tunnel name as well as your host name.

Now, to publish the website made in your localhost in the internet, add http in packetriot, and for this type

“pktriot.exe tunnel http add –domain host name –destination localhost –http 80 –letsencrypt”.

After pressing enter, you can see the text “HTTP/S traffic rule added”.

Now type “pktriot.exe info” and click on enter.

Here you can see that the HTTP service has been added with the domain name.

Step 9- Start Packetriot

Now to start Packetriot, type “pktriot.exe start“.

As soon as you press enter, pktriot will start in a few seconds.

Now copy your host name and paste it on any browser and open it, this default page of Apache will come.

So your local host has been published on the internet. You can check by opening the host name in any device.

Now if you want to open your website, type “/wordpress” after your host name and press enter. First time, it will take some time to open your website, but from the next time it will load very soon.

The host name is your domain name which has been provided by Packetriot, but you can add a custom domain name of your own if you want.

Configure your router

To access your server from the internet, you will need to configure your router to forward incoming traffic to your computer. This is called port forwarding. It is different for every router.

You will need to consult your router’s manual or do a quick online search to find out how to do this. After your router configuration, you will be able to access your server from a web browser by typing in your public IP address.

Test your server

After setting up your server, you can test it by uploading a test page to the htdocs folder in the Xampp installation directory. You can do this by creating a new file in a text editor and saving it as index.html.

Then, you can upload the file to the htdocs folder and access it from a web browser by typing in your public IP address. If everything is working correctly, you should see the test page displayed in the browser.


Turning a computer into a server using Xampp and Packetriot is a cost-effective and easy way to host your own website or application.

By following the steps outlined in this blog post, you can set up your own server and access it from anywhere in the world. Remember to always keep your server updated and secure for the best performance and protection.

Leave a Comment