[Progress Communities] [Progress OpenEdge ABL] Forum Post: How to find the port a server-socket is listening on ?

  • Thread starter Thread starter cverbiest
  • Start date Start date
Status
Not open for further replies.
C

cverbiest

Guest
I found that the following How to find an available port? technique also works in OpenEdge. define var ServerSocket as handle no-undo. create server-socket ServerSocket. ServerSocket:set-connect-procedure("connHandler", this-procedure). ServerSocket:enable-connections ("-S 0"). will listen on an available port. You can find the port using netstat but I'm looking for a way to find that port from withing the ABL code. Is there a way to get the port from a server-socket ?

Continue reading...
 
Status
Not open for further replies.
Back
Top