Ports


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Ports
# 1  
Old 05-12-2009
Ports

** forum admins: Before you come down on my like a wrath of something, I can get no decent answers so I have to come to these Gurus' court ***
I am by no means Unix expert. However, none of our unix admin (aix & hpux) can give me an answer that makes sense.
My Issue:
Assigned ports in 8601, 8603, 8605 for an application (added that value for it to listen/use), requested our Admins to register the service (list in /etc/services?). Well, when I spawn my application -> ZILCH! Nada!
I do netstat -an|grep 8601 only prompt is returned no LISTEN etc.
I telnet to the port it say "refusing connection..."
I ask my Ux admins, same big plain "no answer".
So for a dummy like me what do I need to do to "open" "enable" "activate" "work" the stupid ports???? Plain English if you will and if you tell me to run some nmap or stuff, might as well delete your reply with my thanks!
Thanks in advance,
RS
Expert: Those who make unusually simple things, complex!
# 2  
Old 05-12-2009
/etc/services maps both ports and protocols
What protocol(s) are set up?
# 3  
Old 05-12-2009
Usually, it should be necessary to register a port in /etc/services, except maybe to ensure that everyone knows which are already assigned to an application, but for the OS there should be little difference.

Do you perhaps have control of a test machine, that has no firewall or similar enabled, in order to check whether or not your program runs correctly.
# 4  
Old 05-12-2009
Thank you pludi & jim_mcnamara for your time.

Yes sir the protocol is tcp. (8583/tcp 8586/tcp etc)

I have asked our admins to register in /etc/services and they have not done so yet. Someone said it is not necessary to have it registered to use it.

I was leaning towards perhaps firewall blocking but what do I know, eh!

I can ask if they (admins) can "open" the port, perhaps ensure there is no firewall blocking going on... looks like that is all I could do.

Anything you could suggest to check is appreciated.

Thx
# 5  
Old 05-12-2009
Forgot to add that I am able to PING t he said ports with no packet loss.
# 6  
Old 05-12-2009
Quote:
Originally Posted by rsheikh
Someone said it is not necessary to have it registered to use it.
I agree with this. I have never found it to be the case that a port, a nice name and the protocol must be in /etc/services for a process to bind to a port.

A process can bind to a port, if it has permissions, without opening /etc/services.

... at least this has always been my experience.

Having said that, it certainly does not hurt to add your requirements to /etc/services, but I don't think that will solve your problem; hence I agree with the "someone" in the quote above.
# 7  
Old 05-12-2009
Quote:
Originally Posted by rsheikh
Forgot to add that I am able to PING t he said ports with no packet loss.
In that case, you should be able to do a netstat -an and see these ports in the listing.

Please post the output of netstat -an and cut-and-paste your ports, which must be visible in netstat -an if you can ping them.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ports

When the netstat -an command is run on current unix machine, it seems that there's an excessive amount of ports established (roughly 600). How can I tell what each of these ports are being used for? (1 Reply)
Discussion started by: lastchance551
1 Replies

2. Solaris

ports

Hi, If for example i try to start tomcat in a solaris server and get errors related to address already in use, how can I know if this port is really used for another process? If someone can point any documentation it will be very helpfull. Thanks! :rolleyes: (9 Replies)
Discussion started by: ffpradella
9 Replies

3. Solaris

regarding ports

Hi , I need one help... Is there any command on solaris 10 to free the ports. For e.g I used netstat -na| grep 8080 it displays either it is listening or established.. i want to free the ports... Anyone please help me on this... Thanks, Shanmuga (2 Replies)
Discussion started by: shanshine
2 Replies

4. HP-UX

Ports

Can any one tell the command for which process are running on a perticular port (1 Reply)
Discussion started by: zsujith
1 Replies

5. UNIX for Dummies Questions & Answers

Ports...

Hello UNIX people... This is my first foray into the UNIX world so go easy on me... I have a client who has hired me to do some work on his windows stuff, BUT it just so happens his UNIX server started giving him problems... He is running SCO Open Server 5.0.6 The TTY ports won't... (5 Replies)
Discussion started by: TechKnow
5 Replies

6. IP Networking

Ports

What are some good sites that list all TPC/UDP ports? ~thanks (3 Replies)
Discussion started by: ireeneek
3 Replies

7. IP Networking

ports???

Ok, I've been working in the IT field for about 3 years now and I never fully understood the concept of ip ports. I just started a new job that uses Solaris and today it kinda clicked in my head and I want to know if I'm right or wrong. Does each ip address have multiple ports. because we... (4 Replies)
Discussion started by: eloquent99
4 Replies

8. UNIX for Dummies Questions & Answers

Ports

I know i can look in the /etc/services file to look at referenced port numbers, but is there a command that will list the current ports being used? (i.e. what is the application does not have an entry in the services files :confused: ) (2 Replies)
Discussion started by: Ralf
2 Replies

9. UNIX for Dummies Questions & Answers

Ports

How To Close ports,for example finger port 79?? :confused: :confused: :confused: 10x (6 Replies)
Discussion started by: Yaki
6 Replies

10. UNIX for Dummies Questions & Answers

ports

how can i check to see if my mail ports are open (port 110 for incoming and 25 for outgoing)? I want to do this because i am having a problem sending email out. If one of the ports has a problem, how can i open it? Thanks in advance! (9 Replies)
Discussion started by: djatwork
9 Replies
Login or Register to Ask a Question