I need to set up a TCP server and the sensor devices need to connect to it as TCP clients.
Also, when I add an mp3 file to a device in the admin panel on react, I need to send that file to the appropriate client.
In turn, the device may send me certain data.
I wanted to know how the logic and structure of this whole process should be established correctly?
What should I put my TCP server on? (.Net Core Console, API or Worker Service?)
How can I transfer my mp3 file to my TCP server from the admin panel? and so on
Thanks in advance
Related
I have been given an interface to develop which is stumping me a bit on the communication side. It's been a while since I have fooled with TCP and I am having trouble getting my head around it.
My companies app (let's call it APP1) has the responsibility of sending data (xml via TCP) to another company's app (APP2). Additionally, there will sometimes be traffic received (unsolicited) from APP2 by APP1 for updates that occurred in APP2. I have zero control over APP2. APP2 has to run on the same client PC as APP1. Additionally, APP2 only has the ability to specify one port (we will use 9000) and one IP (usually 127.0.0.1) for traffic.
Using a TCP server, I am create a listener for traffic on port 9000. I also plan to use that tcp server to send data. However, when I .Send() my listener picks up the traffic because the destination for APP2 is 127.0.0.1. I am not sure how I can get data to APP2 while also listening on the same port.
Additionally, if APP2 is on a different machine, everything works fine, it's only when sharing the same client environment that I am struggling.
Can anyone give me an idea of how to approach this?
I'm considering interfacing my application with my VOIP system. My VOIP comes with client application that registers with the VOIP server and when acall comes the app displays call info on computer's screen. I identified local port that listens to the VOIP server. I identified the packet that contains the phone number of incoming call. I identified hex position of that phone number within the packet. So now I want to listen on the Socket for a Stream and create an event when expected packet comes. There are two questions:
Will Windows allow me to listed to packets coming on a port opened by another application?
I've never written Socket listener code. Can you refer me to an example or a tutorial?
One possible solution would be to create a man-in-the-middle application:
Client Application <----> Your Application <----> VOIP Server
Your application will act as a proxy between the Client Application and the VOIP server and at the same time do whatever it wants with the data.
My project is Remote Configuration of teltonika device fm2200.
I use c# for that. I need to send configuration data as SMS and save it in the flash memory of the device. I need to do the below given items in my projects.
How can I configure a gpsTrackingDevice using SMS?
Can I send configuration data as SMS to the device?
Can the the SMS data saved in flash memory?
I want to create a client/server web application. The client and server can exchange data back and forth. When i say data i mean like a number, for example (0,8,7...), so everytime a client presses a button it sends a number to the server and the server send an acknowledgement back to client. The cleint side i want to put it on the internet so you can access the server from a browser.
Is silverlight socket the way to go? I know theres port restrictions but im planning on using my personal router to open up the ports. Or is socket only for local connections???
Assuming you just have no idea where to start, I'd say you should start by learning about WCF (Windows Communication Foundation). Obviously, start with the beginner's guide. There are some nice introductory videos there that should get you going.
If there is such a thing as Silverlight sockets, you can use them. I'd rather use WCF. Sockets aren't restricted to local connections, but you should be aware that using ports different from 80 in Web applications can restrict some user from accessing your them.
I would like to add that sockets aren't the fastest local connections, but are the base of almost all inter-machine communication.
I'm new to understanding how interprocess communication works. I"m working with two applications on my localmachine, a Source Application and a Server Application. The Source application broadcasts files through a configured port on my pc. The Server application listens for those files and exposes them to the internet for users to stream.
I want to remove the Server application from the equation and write a new application to communicate with the Source application.
So far I have my application connected to the port and listening. I am able to receive a message from the port. The message i am receiving appears to be metadata, no file. My assumption is the Server Application sends a response once it has picked up this metadata information to obtain the file. Therefore my application needs to mimic the server application. However I have no idea how to respond to the source application's port.
1) Is there a tool I can use to monitor the communication between the Source application and the server application? I believe this would be a tool to watch for tcp messages? All the tools I come across appear to only look for http messages. Would a packet analyzer be of any use?
2) If I can't view the communication between the source and the server application, what else can I do? Is there a tool I can use to broadcast the meta information I"m receiving on a port, then point the server application to that port and receive a response?
Any resources to help me better understand this intercomunication process would be greatly appreciated.
Yes, you can use Wireshark. It can monitor any TCP (and mucn more) communication, including local.
Use Microsoft Network Monitor 3.3, very easy to use.