Page 1 of 1

Bad answer of the "accept" command

Posted: Sat Jan 27, 2007 5:00 pm
by Jean-Marc
When I execute the following handler, it always answers "error binding socket" on my Mac OS X system, but it works very well on my Window system. (with the OS, I can receive sockets so I am sure the Mac is visible from remote systems). Some body knows why ? Is there, some where, a demonstation stack of the abilities of revolution with the sockets and how to make remote systems dialogs between systems as client-server ?
Thanks

on ClickBtnAccept
accept connections on port 80 with message "AnswerAcceptConns"
if the result is not empty then answer the result
end ClickBtnAccept

Posted: Sat Jan 27, 2007 9:18 pm
by Mark
Dear Jean-Marc,

Your problem is probably not a firewall issue. On Mac OS X, all ports up to and including 1023 are blocked by default. An easy workaround is to use port 8080 (or any other pot above 1023) instead, but if you want to make a web server, you will have to find out how to force the OS to give access to port 80.

Best,

Mark

Posted: Sun Jan 28, 2007 2:30 pm
by Jean-Marc
Thanks, Mark
effectively
"accept connections on port 1024 ..."
works on Mac OS X