ilan Expert Licensed User Longtime User Aug 16, 2021 #1 hi until now I could start the jar files created by b4j multiple times simultaneously. for some reason, I can do it only once now. if I start the jar file again after it is already open the last one closes automatically. is this something new in b4j?
hi until now I could start the jar files created by b4j multiple times simultaneously. for some reason, I can do it only once now. if I start the jar file again after it is already open the last one closes automatically. is this something new in b4j?
Erel B4X founder Staff member Licensed User Longtime User Aug 16, 2021 #2 ilan said: is this something new in b4j? Click to expand... No. How are you starting the jar? Upvote 0
ilan Expert Licensed User Longtime User Aug 16, 2021 #3 Erel said: No. How are you starting the jar? Click to expand... double click on it Upvote 0
ilan Expert Licensed User Longtime User Aug 16, 2021 #4 i use UDPSocket library, could that be the reason? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 16, 2021 #5 ilan said: i use UDPSocket library, could that be the reason? Click to expand... Yes, but the correct way to find out is to run it from the command line with java -jar <jar here> Upvote 0
ilan said: i use UDPSocket library, could that be the reason? Click to expand... Yes, but the correct way to find out is to run it from the command line with java -jar <jar here>
ilan Expert Licensed User Longtime User Aug 16, 2021 #6 Erel said: Yes, but the correct way to find out is to run it from the command line with java -jar <jar here> Click to expand... ok, it's because of the UDPSocket. i tried to run it on the same port and it is not possible. so now i wonder how UDPSocket actually works. let say i have 2 clients that i want to connect to each other and send UDP Packets between them but i guess it is better to start a new thread about this question thank you Erel! ? Upvote 0
Erel said: Yes, but the correct way to find out is to run it from the command line with java -jar <jar here> Click to expand... ok, it's because of the UDPSocket. i tried to run it on the same port and it is not possible. so now i wonder how UDPSocket actually works. let say i have 2 clients that i want to connect to each other and send UDP Packets between them but i guess it is better to start a new thread about this question thank you Erel! ?
Erel B4X founder Staff member Licensed User Longtime User Aug 16, 2021 #7 You can use UDPSocket.Initialize2 and set ReuseAddress parameter to True. It will allow multiple processes to share the port. Upvote 0
You can use UDPSocket.Initialize2 and set ReuseAddress parameter to True. It will allow multiple processes to share the port.
ilan Expert Licensed User Longtime User Aug 16, 2021 #8 Erel said: You can use UDPSocket.Initialize2 and set ReuseAddress parameter to True. It will allow multiple processes to share the port. Click to expand... you are correct! Thanks! Upvote 0
Erel said: You can use UDPSocket.Initialize2 and set ReuseAddress parameter to True. It will allow multiple processes to share the port. Click to expand... you are correct! Thanks!