K
K
keleron2016-01-20 17:51:58
Apache HTTP Server
keleron, 2016-01-20 17:51:58

How to connect to your web socket server from the Internet, which is on the local machine?

Started learning node.js. Wrote a simple chat that works on a local web server (apache). But you need to bring this chat to the Internet, that's the problem. Unable to connect to websocket from internet. The site has global access through my ip, and when accessing it outside the local network, the web socket is not available. How to fix?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Nikolaev, 2016-01-20
@nightvich

If you have a white ip, then it will be enough to forward the ports on the router.
If there is no white ip, use DDNS services, you can configure it on most modern routers or as an application for a PC.

S
svd71, 2016-01-21
@svd71

The easiest way is to allow the port you need through NAT in the router. Then go to www.noip.com, register a free account, download and run the program or script you need on your computer (depending on the operating system).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question