• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa-dev Digest, Vol 2, Issue 1149
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 2, Issue 1149


  • Subject: Re: Cocoa-dev Digest, Vol 2, Issue 1149
  • From: Dominic Feira <email@hidden>
  • Date: Tue, 26 Jul 2005 09:51:30 -0400

Ports 1 - 1024 are reserved for the system (server daemons etc). In order to use them you must have admin privilege. Use a port number > 1024 and you should be all set.

I'm not sure about your second error.  Good luck.

Dominic Feira / Code Monkey / Ambrosia Software, Inc.

On Jul 26, 2005, at 9:47 AM, email@hidden wrote:

Hello all.
I am trying to use AGSocket in Cocoa project to send and receive UDP
packets.
Sending works ok, but for receiving I am using the folowing code:


AGInetSocketAddress *addr = [AGInetSocketAddress addressWithHostname:
@"127.0.0.1" port: 1001];


If I am running this code, I am getting the following error after the
calling to the "listenOnAddress:" method I am getting " error 13,
"Permission denied" error.
This error is the same then I am working with my ADSL dinamyc adress.

If I am manualy launching application binary via terminal with "sudo"
command, it works ok.

In the office, at the local network, where IP is 172.16.0.2, I am getting
other error " error 49, "Can't assign requested address"


Does this need using AGSocket requires admin privileges?
Thank you.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: NSMutableCopy Issue - New to Cocoa and Objective-C
  • Next by Date: Re: Crash after [NSData dataWithData:(NSMutableData *)]
  • Previous by thread: Re: Crash after [NSData dataWithData:(NSMutableData *)]
  • Next by thread: Re: Cocoa-dev Digest, Vol 2, Issue 1149
  • Index(es):
    • Date
    • Thread