• 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
BSD Sockets > 1024
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BSD Sockets > 1024


  • Subject: BSD Sockets > 1024
  • From: Robert Kuilman <email@hidden>
  • Date: Thu, 9 Jan 2003 01:30:31 +0100

Hey all,

I started writing some network code under MacOS X 10.2.3, trying to
listen to a port > 1024.
first, 8600 was my target (because i love the machine) but then, that
wasnt working, i tried 12345, which wasnt working either.

i wrote the 'listen' part looking at
http://www.cs.arizona.edu/computer.help/policy/DIGITAL_unix/AA-PS2WD-
TET1_html/netprog10.html#co_id_153_3

all goes okay, i don't get any errors, and connecting to 127.0.0.1 goes
just fine, but as i try to connect from a different machine (using
telnet as well)
it won't work.

local_address.sin_family = AF_INET;
local_address.sin_port = htons(12345);
local_address.sin_addr.s_addr = htonl(INADDR_ANY);

then binding it, exactly as told in the howto, but it just wont work,
looking with netstat -an it shows the port is binded just fine:

% netstat -an | grep 12345
tcp4 0 0 *.12345 *.*
LISTEN
%

anyone got any suggestions on how to solve this problem ?

Robert K.

web: http://halfduplex.net/
email: email@hidden
------------------------------------------------------------------------
---------------------
"All aninimals are equal, but some animals are more equal than others."
- George Orwell - 1945
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: BSD Sockets > 1024
      • From: Vincent Lubet <email@hidden>
    • Re: BSD Sockets > 1024
      • From: Ian Lister <email@hidden>
  • Prev by Date: BitStaffing Error (-6914)
  • Next by Date: Re: BSD Sockets > 1024
  • Previous by thread: BitStaffing Error (-6914)
  • Next by thread: Re: BSD Sockets > 1024
  • Index(es):
    • Date
    • Thread