The Akka HTTP documentation [1] says:

"The Http.ServerBinding also provides a way to get a hold of the actual local address of the bound socket, which is useful for example when binding to port zero (and thus letting the OS pick an available port)."

The scenario is I'm using a localhost http service which needs to be on a system-assigned localhost port to communicate with subprocesses and I need to find out which port the server is bound to. Despite what the documentation says I can find no way of doing this before starting to accept incoming connections, and no way of doing it using the high-level routing DSL.


Alan Burlison

     Read the docs:
     Check the FAQ:
     Search the archives:
--- You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to