Jump to content


Photo

How to re-open already opened port

Server Module ReuseSocket

  • Please log in to reply
6 replies to this topic

#1 shervin

shervin

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 01 November 2016 - 11:25 PM

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.


  • 0

#2 mohammad

mohammad

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 845 posts
  • LocationKufur Kassem, Palestine

Posted 02 November 2016 - 06:34 AM

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 


  • 0

#3 shervin

shervin

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 11 November 2016 - 10:10 PM

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


  • 0

#4 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 10551 posts

Posted 12 November 2016 - 03:41 AM

ResuseSocket has a different meaning. It does not allow two sockets listen on same port.
  • 1

#5 delphidude

delphidude

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 233 posts
  • LocationNorway

Posted 14 November 2016 - 11:48 AM

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 :)


  • 1

#6 mohammad

mohammad

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 845 posts
  • LocationKufur Kassem, Palestine

Posted 14 November 2016 - 03:37 PM

Very good explanation :-)


  • 0

#7 shervin

shervin

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 14 November 2016 - 08:27 PM

Thanks for replies.


  • 0





Also tagged with one or more of these keywords: Server Module, ReuseSocket

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users