wont work outside of Glitch and localhost IP

I followed tutorial and it works well when my node app is on Glich, but when I try to host it on my machine, it only works with IP, but not with the public IP. (and yes I opened my ports, firewall disabled)
I tested server with this tool:
And everything works well, I get the connection on my machine.
Client side:

var Testbre = pc.createScript('testbre');

// initialize code called once per entity
Testbre.prototype.initialize = function() {
    this.socket = io.connect('');

// update code called every frame
Testbre.prototype.update = function(dt) {

Server side:

var server = require('http').createServer();
var io = require('')(server);

io.sockets.on('connection', function(socket) {
    console.log("Client has connected!");

console.log ('Server started.');
server.listen(3000, "");

I found out something, there is a bug, connects only to secure connection(SSL), I generated 2 forwards with ./ngrok http 3000, and http didn’t work but https works.