UDP Client is not working lazarus / 66-Unix ---------------------------------------------------------------------- rotation · 2014-04-01 09:58 Hello! I have a problem with UDPServer and UDPClient from Indy 10 in Lazarus on Fedora 16. When I compile the project for UDP connection, I can't to see where is the wrong. In the attached file, I am posted screenshot for error report. Please, help me! ---------------------------------------------------------------------- User137 · 2014-04-01 11:37 Just a guess, form would somehow be creating client before the server (wouldn't surprise me, alphabetically C comes before S), and therefore not be able to connect. You could ensure that by setting Active to false, and in the startup, for example TForm's onCreate event set it to true. ---------------------------------------------------------------------- rotation · 2014-04-01 13:13 I make the follow changes on the screenshot as an attachment Where I am not ok? ---------------------------------------------------------------------- Mike.Cornflake · 2014-04-01 14:43 In your code you're creating the server.  BUT it already exists on your form, so there is no need to create it. Comment out the Create lines, leaving just the Active lines.  See what happens.  (And I'm not saying this will work either, just saying that the create is definitely wrong...) Also, are you sure nothing else on your PC is using Port 8012? ---------------------------------------------------------------------- rotation · 2014-04-01 15:24 I deleted create lines, but it says 'Socket Error #98' from attached screenshot. I set to Firewall Port 8012 with UDP protocol for enable, but nothing, socket error ---------------------------------------------------------------------- Laksen · 2014-04-01 15:30 Port and BoundPort can not be the same for the client. The server binds to that Port already, and you can't bind two UDP sockets to the same port on the same computer. Change the BoundPort to something else ---------------------------------------------------------------------- rotation · 2014-04-01 15:39 And again error with changed Boundport ---------------------------------------------------------------------- Laksen · 2014-04-01 18:00 Did you add -dUseCThreads to your projects Custom options? ---------------------------------------------------------------------- rotation · 2014-04-01 18:48 Sorry, I am new user in Lazarus, how i can to add that -dUseCThreads? Edit: I found a topic: http://forum.lazarus.freepascal.org/index.php/topic,8852.msg43783.html #msg43783 ---------------------------------------------------------------------- rotation · 2014-04-01 20:07 Thank you everyone for your support! It works exactly