❔ forms app that can communicate with other apps
I want to make a forms app that can send and retrieve data from another forms app if given a certain sring that is generated to join a network (like in game muck) but I dont know where to start or how to start
27 Replies
are we talking about two apps running on different machines?
over local network?
over the internet?
are you actually talking about two different apps, or just the same app running on different machines?
do you have any control over this "other" app, if that's what we're talking about?
For games it is highly recommended to use both UDP and TCP.
or add reliablity on top of UDP (rUDP, which is somewhat difficult to implement)
use UDP if you don't care if data gets lost, but you need to send things such as position packets.
and use TCP if you want to guarantee they arrive and in order as well, such as when receiving login packets, scene load, entities spawning / despawning, etc.
diffrent computers diffrent network
same app, though?
yes same app but Im thinking to add 1 or 2 diffrent thing s to another one
well, you're going to need to either establish a server
or look into how peer-to-peer networking works
which also still kinda involves a server
the majority of the time
the server serves as the well-established connection point
its not a game its more like a chat app or something similar
in order to get two computers to talk to each other, they have to know that each other exists
you solve that problem by setting up a server that ALWAYS exists
The problem is I know nothing about servers
at the same IP address, or at least the same URL
then you can either have all clients connect to the server, and the server re-sends messages coming in, back out to other clients
or you have all clients connect to the server to report themselves as online
and get a list of other online clients that they can connect to directly
I dont know how to make server. I dont need to send and recieve a lot of data either
well, you're gonna have to learn
a server, ultimately, is a computer that sits around and listens for incoming network connections
or, just incoming network communication, in general
where can i learn?
your best bet to get started from nothing is probably to read up on, and experiment with, ASP.NET Core
which si Microsoft's .NET Framework for building Web Servers
what you describe may or may not be suitable with a web server, but it'll teach you the core concepts
yes please
otherwise, start looking for tutorials or videos or books or whatever, on the topic of networking
and client/server applications
can you tell me the basics if possible please?
no
understood
I am not in the mood to teach a 100-level college course
okay no problem
I gave a few basic points above
a server is a computer that sits and listens for incoming network connections
and then does something when they happen
okay thanks!
if you need info about like, what TCP/IP is and the OSI Network model, that's more than I can provide here in text
okay thanks again
Might wanna look up how IRC works, it sounds like you want something somewhat similar to that.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.