question

SanyaAnishchik-6350 avatar image
0 Votes"
SanyaAnishchik-6350 asked YulinShi-3674 commented

Connect desktop application with mobile

I have desktop POS .NET application and mobile report application. I need to connect them and send report from POS to mobile by mobile request.
Because PC and mobile are placed under NAT with dynamic IP I cannot do any calls directly by http request. I implemented Azure SignalR Service and connected mobile and PC so now I can call each other.
But the problem in size of socket message - too small to transmit whole report (can be 1mb+).
Is there any workaround or azure service that can help me achieve this goal? I also think about generation and putting report in Azure Blob Storage by request and just transmit link instead of report from POS to mobile


dotnet-csharpwindows-wpfazure-signalr-service
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

could you please give us some more detailed info regarding your report size, how often do you send messages, do you need the reports to be persistent stored for a longer time in cloud, how many mobile clients do you have concurrently, etc.

0 Votes 0 ·

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered OleksandrAnishchik-8031 commented

Hello SanyaAnishchik-6350,

Thank you for your question and for getting in touch.

Here's a suggestion on how to fix and make this type of connection:

In your desktop app, you can use an object of the HttpListener class: https://docs.microsoft.com/en-us/dotnet/api/system.net.httplistener?redirectedfrom=MSDN&view=net-5.0 and in your app mobile, you can call the url (using a web client object) from your desktop app. At the bottom of the link page you can find an example of HttpListener.

In the link mentioned above you will find an example of how to use HttpListener.



If the answer is helpful, please vote positively and accept as an answer.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I cannot call because I don't have mobile or desktop IP, they placed under router and don't have static IP

0 Votes 0 ·