Anonymous User
  Wednesday, 04 December 2024
  4 Replies
  117 Visits
  Subscribe
Hello,

I send in a Delphi 7 app binary data via a single TSgcIdClient instance to different devices in LAN.
The UDP port is fix only the target IPs will be changed.

After several minutes more and more ports are blocked until the app has been restarted.
Which blocks are blocked is different - sometimes also TCP 80 or 443.

I have checked my code by using sample codes but it works except this issue.
Is there anything to consider ?

Thanks in advance.

Greetings,
Frank
2 weeks ago
·
#2182
Hello,

I am sorry but I think I don't understand, which is the name of the component are you using? because there is no TsgcIdClient component.

Kind Regards,
Sergio
2 weeks ago
·
#2183
Hello Sergio.

Sorry - I am using a TsgcIDUDPClient component.

Here are some code snippets.

Instance of UDP client is created one time in process:
var client:TsgcIDUDPClient;
client :=TsgcIDUDPClient.Create(NIL);
client.Port:=<Port>;

Sending data happens in a thread cyclicaly (interval is 250msec or less):
client.SendBuffer(<IP>,<Port>,<buffer>);

The length of <buffer> is max. 1024 bytes.

Greetings,
Frank
2 weeks ago
·
#2184
Hello,

I've opened a UDP server in one machine and the UDP client in another machine, the client sends a message every second and I don't see this behaviour.
I'm using the demo in the folder: "Demos\35.P2P\01.UDP_Server_Client", just modified with a TTimer in the UDP client.
To check which ports are opened I'm using TCPView, which can be downloaded from:

https://learn.microsoft.com/es-es/sysinternals/downloads/tcpview

tcpview.png

I don't know why it's happening, try to identify which application is blocking these ports, maybe an antivirus or firewall?

Kind Regards,
Sergio
Attachments (1)
2 weeks ago
·
#2185
Hello.

Thank you - I will check with TCPview.

My app is used on computers of different customers. Therefore it could be their AV or FW.
But it happens also on my local test environment (no domain, fix IPs, 1x PC and 1x target device).
AV and FW are the Windows instances of the test computer.

Greetings,
Frank
  • Page :
  • 1
There are no replies made for this post yet.
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below.
Supported: gif,jpg,png,jpeg,zip,rar,pdf,pas,dfm,dpr,dproj,dpk
· Insert · Remove
  Upload Files (Maximum 10MB)