Let’s say “Hello World” with Sink In.

Aman Gupta
Sink in
Published in
4 min readJan 11, 2018

A few days ago we shared our story of WHY. And today we are going to the next level of golden circle i.e HOW.

How we can use Sink In to expose our localhost. How we can access our PC’s HTTP server from anywhere in the world using Sink In. How Sink In will make you your own Host.”

In the last post, we mentioned how Sink In would help developers to expose their PC HTTP server and what developers can do with the Sink In.

So to take it to the next level, we will be introducing our first tutorial of Sink In where we are going to set up a simple web project with Sink In. And will show you how you can expose your localhost and share this project with everyone.

Let’s begin our tutorial. ( We recommend all of you to follow us with your laptop or PC )

Prerequisites
a) Installed Xampp server (WAMP, LAMP, MAMP as per your choice)
b) Knowledge of basic HTML.
c) Internet connection.

Step 1:

To expose your localhost, you need a public domain and for that, you can purchase a subdomain from the site www.gosink.in (available for free).

Simply, register on the site and visit the dashboard.
Add a subdomain like example.parkntrade.com.
Download the Sink In executable file as per your Operating System.

Now we are going to connect our localhost to the Sink In.

Step 2 :

As we all know that to run our PHP files locally we need to have Xampp server installed on our PC. (Or in other cases WAMP,LAMP or MAMP)

Note: If you don't have Xampp installed, get it from here Xampp download and install it on your PC.

So, next start your Xampp control panel (WAMP,LAMP or MAMP if you have not installed Xampp) and start your Apache server. Remember your Port number ( 80, in my case).

Now, Go to the downloaded folder of the Sink In and open the directory of the folder in command Line.

Note : Open directly with, hold shift + Right click and click the open the command window here.

Write down the command.

Sinkin : write the Downloaded File Name(sinkin-win.exe, sinkin-linux or sinkin-mac as per your OS)
-e :
your Sink In email name.
— pwd :
your Sink In password.
-s:
name of the subdomain i.e example (do not write
example.parkntrade.com
)
-p :
port number i.e 80(in my case).

And click ENTER.
you will see next example.parkntrade.com running.

Finally, your PC’s HTTP server is ready to be exposed.
you can check if it is exposed or not by opening the domain example.parkntrade.com in any other device and if you see your Xampp page, then it is DONE.

Step 3:

Now we are going to Make a HELLO WORLD HTML file to share with everyone.

Make a folder named TEST in the htdocs folder of Xampp directory and put this HTML file (HelloWorld.html) in the folder TEST.

And then access your HTML file with the domain name like
example.parkntrade.com/test/HelloWorld.html.

Finally you see your HelloWorld.html file content in the browser and you can see that your localhost is ready to be exposed. Now you can access this locally running HTML file from anywhere in the world.

We have done a set up of a simple web project on Hello World.

Here are some of the important things everyone should know while exposing your localhost.

Note:
1. You have to make your PC running for the time you want to expose your localhost.
2. Don’t close your cmd and Xampp.
3. Share this URL example.parkntrade.com/test/Helloworld.html.
with everyone to get a feedback.
4. You don’t need to host your files to any other server.

We hope everybody will set up this small tutorial quite easily and if you find any difficulties, Feel free to drop a mail at support@gosink.in or leave a comment below.

For more tutorials on Sink In and further updates, Follow us.

https://www.facebook.com/gosinkin

www.linkedin.com/company/sink-in

A very thanks to all.

--

--

Aman Gupta
Sink in

Digital UX/UI Designer and Writer :: Maker of Design Responsibly and UX laws.