snoop -d {INTERFACE NAME} port {PORT NUMBER}
might help
Main Topics
Browse All TopicsHi,
I have a TCP IP program that runs on Solaris 8. It uses user defined outgoing IP port instead of setting it to "ANY" outgoing port available setting. My TCP program is running fine for a while but after some time, it will crash. When I try to restart the program, it fails to connect to the remote server. When I issue netstat -a, I can only see that the status is "SYNC SENT" instead of "ESTABLISHED" for my program connecton status. I am not sure on what could have resulted in this. I changed the outgoing port to another value and the program starts running and get connected again (temporary).
Is there any other solaris utilites that I can use to further trace the cause of the problem?
Thanks.
CM
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi,
After much investigation, I found that the TCP/IP connection to the remote servers areunstable.
This could be due to my recent testing which requires us to pull out the LAN cable and putting it back and also to use ifconfig to bring the interface UP and DOWN.
My application is very unstable now. Its client outgoing port becomes occupied and unsable after 8 hours of running without problems.. I try to re-run the application and now it fails to connect to the remote server. Is there a utility to check and reset TCP/IP port? Or do I need to perform a reboot on the Solaris 8 server? I re-run my application using another outgoing port and now it is able to connect to the remote server.
Thanks.
Regards,
CM
Business Accounts
Answer for Membership
by: jleviePosted on 2006-01-08 at 14:32:37ID: 15643976
Seems to me that the first order of business would be to figure out why the program crashes and fix that. The other problem should then go away. I think what you are seeing is the natural result of the kernel not knowing that the port is no loger in use because your program didn't close it. The kernel should eventually time out (after a few miutes) the port and close it.