implement waitport to indicate how many seconds to wait for server to be up when socket cant be opened