(Dec 24, 2018 11:13 AM)HardStoN Wrote: i wonder how can i make a tcp listener and client that can connect to the server even if we are in the different wifi.
or if thing like that even exist with tcp listener and client or even something else.
Thanks for helpers.
Not a lot of info to go on. What server? Services running? you mentionned c#, any specific reason for it?
In short: Yes you can connect to the internet (both TCP & UDP) by programming a c# program. Idk why that's even a question.
The better question would be why should I not be using netcat and instead pain my life into re-inventing the wheel with a program, in a language that's not only bad but limited to windows (pretty much).
tldr: netcat. just fucking use netcat.
EDIT: I didn't got that you owned that server. You can just port forward any incoming port/protocol/ip's to the server if it's in your LAN, otherwise the server seller SHOULD provide info on how to do it on their end.
(Dec 24, 2018 02:51 PM)gigajew Wrote: If you use udp instead, and listen on port 80 on your server, the client shouldn't get blocked by firewall :)
How could you possibly know that? Do you own the server? What firewall is it running??
Thought so.