E
E
Eugene2016-09-18 21:48:45
Computer networks
Eugene, 2016-09-18 21:48:45

How to run a server program with the ability to access from remote computers?

Good day to all. Not so long ago I started studying network programming and the other day I wrote a chat on the tcp protocol, consisting of a client and a server. I checked this program only on my computer (using local ip), after I had played enough I tested the program, there was a desire to connect the client not from the same computer where the server is running, but from a remote one. Digging in Google and did not find an answer, I found some information about port forwarding, which did not help me.
In general, I'm interested in how you can run the server on your computer so that clients can connect to it from remote computers. It is also interesting to know if there are services that provide such a service so that I can rent hosting and run my program on it (as with sites, with the only difference that I have an executable)?
I would be very grateful for any help, information, literature.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2016-09-18
@saboteur_kiev

1. Rent vps with Windows
2. Port forwarding is possible only if you have a device with an external IP address, for example, not a computer but a router is directly connected to the Internet, and you, as the administrator of this router, can forward some port on comp.
3. But if the provider does not give you an external address, then nothing will work. Then look at the provider for the service "external ip address" so that your computer is directly accessible from the Internet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question