From owner-freebsd-questions Thu Feb 28 5:30:50 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.ycn.com (mail.ycn.com [212.88.160.3]) by hub.freebsd.org (Postfix) with ESMTP id 2FF8E37B41C for ; Thu, 28 Feb 2002 05:30:45 -0800 (PST) Received: from ws01 (212-88-187-192.ADSL.ycn.com [212.88.187.192]) by mail.ycn.com (8.11.3/8.9.3/Debian 8.9.3-21) with SMTP id g1SDVi315070 for ; Thu, 28 Feb 2002 14:31:45 +0100 From: "Richard Kaestner" To: Subject: RE: Q: Sockets - how to find a free and valid port number Date: Thu, 28 Feb 2002 14:43:21 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I am working on a socket client, which should: - connect to a server, - supply a "return" socket port (similar to ftp) - continue communication on a second socket (Everything is on an Intranet. I was told, the firewall is secure. And my client should run as ordinary user) Up to now, I could only find rresvport (2) (which returns a port in the privileged area) However, I would prefer non-privileged. Could anyone show me a way to get such a port number? Thanks in advance! -- ciao - Richard "you have moved your mouse, please reboot to make this change take effect" Richard Kästner Woerthgasse 17 2500 Baden mailto:richard.kaestner@ycn.com Austria To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message