On Thu, 2006-04-27 at 15:47, Roshan wrote:
What is the range of port numbers bind to
different
applications in Redhat Linux 9.0?
Any command, other than netstat to find out that?
cat /etc/services
This helped; thanks!
I am using the port 4000 in socket programming, locally creating a server and client for accessing, but the server program does not seem to create the server, while it does in windows :(...
Any ideas?
__________________________________________________________ Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com
On 4/28/06, Roshan d_rosh2001@yahoo.co.in wrote:
I am using the port 4000 in socket programming, locally creating a server and client for accessing, but the server program does not seem to create the server, while it does in windows :(...
Hello Roshan You can check whether the server is created and using the port 4000 by keying netcat -anlp | grep 4000 It should return an entry for your server process. Another thing that would help is to check the return value of the socket(), bind(), connect() calls. Hope it helps. -- Apoorva Kulkarni
On 4/28/06, Apoorva Kulkarni apoorva1911@gmail.com wrote:
netcat -anlp | grep 4000
I am sorry for the typo error. Its netstat -anlp | grep 4000
-- Apoorva Kulkarni
On Friday 28 April 2006 13:23, Roshan wrote:
I am using the port 4000 in socket programming, locally creating a server and client for accessing, but the server program does not seem to create the server, while it does in windows :(...
Well you can start by: 1. Posting your code 2. Telling us what error it is flagging
FYI remember, you cant create a socket to listen on any of the first 1024 ports. Only root has the rights to do that. Though this isnt the problem in your case.
On Friday 28 April 2006 13:23, Roshan wrote:
I am using the port 4000 in socket programming, locally creating a server and client for accessing, but the server program does not seem to create the server, while it does in windows :(...
Any ideas?
are you converting host to network and network to host correctly?