Re: BSD Sockets > 1024
Re: BSD Sockets > 1024
- Subject: Re: BSD Sockets > 1024
- From: Robert Kuilman <email@hidden>
- Date: Thu, 9 Jan 2003 12:28:59 +0100
On Thursday, January 9, 2003, at 09:17 AM, Vincent Lubet wrote:
You must have a firewall enabled on one of your machine.
Vincent
On Wednesday, January 8, 2003, at 04:30 PM, Robert Kuilman wrote:
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.
Well, connecting from my G4 (which has 172.16.0.30 as IP) to 127.0.0.1
and 172.16.0.30 works just fine,
when i connect from my linux server to the G4, i get a timed out
connection, while SSH works just fine.
portscanning my G4 only shows the SSH-open.
but then, if i have a firewall active, shoulnd't i be able to open a
port regardless of what the firewall thinks ?
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.