Jump to content
uniGUI Discussion Forums
Sign in to follow this  
shervin

How to re-open already opened port

Recommended Posts

Hi,

 

Is there a ways to set ReuseSocket := rsTrue in Server Module?

I am trying to merge unigui and a software to work-on/open the same port but cannot set unigui to allow ReuseSocket.

 

Thank you.

Share this post


Link to post
Share on other sites

As a server side you can't assign two apps to listen to the same port !! beside that you have more than 65,000 ports, try to use a different port 

Share this post


Link to post
Share on other sites

Hi, thanks for reply. Indy has a property called ReuseSocket which allows it. But it is not exposed in uniserver...

Share this post


Link to post
Share on other sites

Having two apps listening on the same port, on the same IP,

would create a routing problem, so it is blocked by the OS.

If both responds, who does first would be unpredictable,

and it's meant to be a one-on-one setup like in monogamy.

 

But you can add another network card/IP address on the

same box, if that helps you.

 

That way you can broadcast to both apps, on the same port

but different IP, if that was the goal. Like having two girls,

but in different rooms. You can't have two open ports in one

single room...only creates problems....just common sense :)

  • Upvote 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×