Тёмный

Turn your PC into public server Using Node App: PC Server | How to Make A Server | Localhost to Live 

Codeboard Club
Подписаться 15 тыс.
Просмотров 33 тыс.
50% 1

Web developers and designers sometimes feel to make their site or application public, may be for some demo or accessing it from some other devices.
Most free hosting sites are not reliable and also most of those does not provide support of other languages apart from PHP; and in some cases they provide static page hosting. So in this video you will get to learn, how to expose localhost to a public URL - so that everyone can access.
Various VPN services, like NGROK provides some very difficult to remember URL and also URL keeps changing always. So, those are not a very good solution. For getting a fix URL, or other features like custom domain - you need to take paid services.
But, here we will discuss how can we achieve localhost to live URL using Node JS and Web Socket Protocol (WSP). Step by step coding is discussed here - codebase is also open source.
#channelcodeboard #node #webserver #wsp #websocket
node, wsp, nodejs, programming,
how to make a server, server pc, pc server, host website from home pc, how to host your own website, computer,tutorial,how,to,how to,website hosting,server,wampp,how to turn your pc into a server,host website from home pc,host your website from your computer,how to host your own website from a server,hosting,ngrok,local server,public server,local project,public project,ngrok windows 10,ngrok windows tutorial,ngrok windows command,ngrok windows service,ngrok windows install,ngrok windows

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 48   
@abrarness
@abrarness 2 года назад
so misleading man. you're not turning your PC into a "public server". you're hosting your code on heroku. MISLEADING, ALMOST FAKE
@CodeboardClub
@CodeboardClub 2 года назад
No, I am not hosting website in Heroku, I am hosting an web app in Heroku. And that is one time only. After that any web site and web application you run in your local system will be available live.
@genechristiansomoza4931
@genechristiansomoza4931 10 месяцев назад
This is how ngrok works. He gave you the knowledge on how to do it yourself for free.
@SomnathBid
@SomnathBid 5 месяцев назад
Where is the source code or git-hub link on it ??
@satinathmondal6353
@satinathmondal6353 Год назад
Thank your sir for nice post. I have tested and succeed. if I parchase the domain for my application, what will be the security issues? I am running a MS SQL server database, in cross platforms like android, windows offline etc. with JSON data format.
@avijitpalit6909
@avijitpalit6909 2 года назад
Why need heroku? Then how my pc turn to public server?
@I.amRisky
@I.amRisky 7 месяцев назад
am also wondering😁
@siddharthashi
@siddharthashi 3 года назад
Using this method (Node JS) can we create a server for TCP / UDP protocol (Port forwarding)?
@forester1
@forester1 2 года назад
Very awesome 😎😎😎
@Mersal-tq9lm
@Mersal-tq9lm 3 года назад
How to see the responses of the request received in ngrok?
@mcspraint4591
@mcspraint4591 2 года назад
Cannot set headers after they are sent to the client exception
@yunus5949
@yunus5949 2 года назад
you are trying to send more than one response for a request
@78_souvikmandal27
@78_souvikmandal27 3 года назад
Can we not make peer to peer connection from any public device to my computer using ip address without herokuapp?
@CodeboardClub
@CodeboardClub 3 года назад
Possible. You can definitely do that. Make one of the computers server and another one as client.
@78_souvikmandal27
@78_souvikmandal27 3 года назад
@@CodeboardClub then please make a video particularly on that for peer to peer connection
@78_souvikmandal27
@78_souvikmandal27 3 года назад
@@CodeboardClub also another one on SSH
@CodeboardClub
@CodeboardClub 3 года назад
Yes, please. Sorry for late reply
@myominpaing5244
@myominpaing5244 3 года назад
Greats
@CodeboardClub
@CodeboardClub 3 года назад
Thanks 😊
@louamacademie5837
@louamacademie5837 10 месяцев назад
Heroku is no longer free 😢
@ВикторСлавчев-о1к
Very good video!
@jerickduay7459
@jerickduay7459 3 года назад
Is this work in visual studio 2019?
@jeethechamp7458
@jeethechamp7458 3 года назад
Lol
@pankajkaushik6244
@pankajkaushik6244 2 года назад
Is the public host used free of cost with unlimited uses
@CodeboardClub
@CodeboardClub 2 года назад
Yes
@robertlang5580
@robertlang5580 2 года назад
can u share client.js code ?
@Trioxio-fi6yr
@Trioxio-fi6yr Год назад
var sockerServerUrl = ""; var hostToLive = "localhost"; var socket = require('socket.io-client')(sockerServerUrl); const superagent = require('superagent'); socket.on('connect', function(){ console.log("connected"); }) socket.on('disconnect', function(){ console.log("connection lost"); }) socket.on('page-request', function(data){ var path = data.pathname; var method = data.method; var params = data.params; var localhost = hostToLive = path; if(method == "get")executeGet(localhostUrl, params); else if(method == "post")executePost(localhost, params); }) function executeGet(url, params){ superagent.get(url) .query(params) .end((err, responses) => { if (err) { return console.log(err); socket.emit('page-response', response.text); } }) } function executePost(url, params){ superagent.post(url) .query(params) .end((err, responses) => { if (err) { return console.log(err); socket.emit('page-response', response.text); } }) }
@dom8429
@dom8429 3 года назад
can you link your github in the description so we can clone this? thank you
@CodeboardClub
@CodeboardClub 3 года назад
I will add
@spuckhafte
@spuckhafte 2 года назад
@@CodeboardClub add it
@georgichalakov6727
@georgichalakov6727 2 года назад
As if today it is not safe to use node js. Node's devs are not to be trusted
@MilanCakic-iw3np
@MilanCakic-iw3np Год назад
Its just a heroku server!!! Turn on PC into public server means serving ur server localy, and being able to access server via public IP, and not hosting it on heroku as a midleware witch charges now monthly.
@SabbirAhmed-sb7qp
@SabbirAhmed-sb7qp 2 года назад
running node .\client.js and nothing happens (either connection success or failed or not showing any error)
@colboypkt3345
@colboypkt3345 7 месяцев назад
Anyone done this I need help?
@zidanrafifpratama
@zidanrafifpratama 2 года назад
hi in 10:33 what mean of /user/name ? username in our laptop or what ?
@programmingwormhole
@programmingwormhole 8 месяцев назад
Source code?
@colboypkt3345
@colboypkt3345 7 месяцев назад
Is it will serve html,css code also?
@meerachaturvedi9050
@meerachaturvedi9050 3 года назад
Nice vedio But if i wish to deploy whole server As dedicated one then... How it will work
@swargaraj
@swargaraj 3 года назад
Voice by?
@joaogustavoferreira7136
@joaogustavoferreira7136 Год назад
github?
@kalush81
@kalush81 3 года назад
hosting a webiste on heroku is an " expose locallhost to a public URL " ?
@CodeboardClub
@CodeboardClub 3 года назад
Really!! Did I host a website in heroku? Firstly do you know what is the difference between website and web application?
@kalush81
@kalush81 3 года назад
​@@CodeboardClub Yes, I know the difference and sorry to name your "chat web app" as a website. By the way, the title of your video is misleading, you are not turning your computer into a public server.
@CodeboardClub
@CodeboardClub 3 года назад
Yes, I am turning my computer act like a public web server. I m hosting a node app in heroku - not any website. That node app is communicating with localsystem using web socket.
@yunus5949
@yunus5949 2 года назад
@@CodeboardClub Actually it is misleading.
@CodeboardClub
@CodeboardClub 2 года назад
@@yunus5949 Why exactly?
Далее
Scaling your Node.js app using the "cluster" module
13:44
Your Old PC is Your New Server
11:07
Просмотров 6 млн
PHP on the frontend! No more Javascript!
14:47
Просмотров 123 тыс.
The $0 Home Server
16:53
Просмотров 899 тыс.
Building the ULTIMATE Minecraft Server
18:07
Просмотров 3,8 млн
Making Minimalist Web Server in C on Linux
10:23
Просмотров 245 тыс.
The intro to Docker I wish I had when I started
18:27
Просмотров 113 тыс.
Host Your Own Website at Home: A Complete Guide
16:53
Просмотров 196 тыс.