Results 1 to 3 of 3
Hello all,
My simple client server application using socket is failing, (Client is failing to be precise)
connect system call is failing.
"connect: Permission denied" . My server is listening ...
- 02-04-2008 #1Just Joined!
- Join Date
- Feb 2008
- Posts
- 1
"connect: Permission denied" connect system call fails for a simple client server app
Hello all,
My simple client server application using socket is failing, (Client is failing to be precise)
connect system call is failing.
"connect: Permission denied" . My server is listening on port 31512, and client is trying to connect to that port. I am running both client and server on same PC.
I have opened that port also using firewall settings. Do I need to do some thing else also.??
- 02-04-2008 #2Linux Newbie
- Join Date
- Nov 2007
- Location
- Planet Earth
- Posts
- 152
try:
to see if the port is really open to connections.Code:telnet localhost 31512
BTW, you should use port numbers up to 49152 (but for local purposes, of course there's no problem)EOF
- 02-04-2008 #3
I'm presuming that you wrote the client yourself. When you get the error return from connect(), then
- What is the exact value of the number returned by the connect() system call itself?
- Immediately after the errored call to connect(), what is the numerical value of errno?
--
Bill
Old age and treachery will overcome youth and skill.


Reply With Quote