MAC computer with Darwin 10.6 How to open port 8080 and keep it open

I have a client with Mac computer and I need to open port 8080. I can talk to the port if I use this command "nc -l 8080" Network program will then show port open and then it will close after it get used. Google everywhere and can't find a solution. Any help would be appreciated.
It's an older MAC with Darwin 10.6.4.
Chris SlackIT ConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
Ports only are open if there is a program listening and responding on them.  There really is no such as just an 'open' port.  That is not just OSX but all operating systems, Windows, Linux, and anything else that uses standard networking.
Chris SlackIT ConsultantAuthor Commented:
I can use the Apple Network Utility to see all ports that are open(Listening). 22,80,88,445 etc... In windows I can use the firewall advanced settings to open a port(Listen) all the time. There should be one for the MAC too. It's a simple web site that is requesting this port be opened(listening). There is some Apache or sudo command out there that should do this.
Eoin OSullivanConsultantCommented:
Dave is correct .. every open port has some service behind it which is listening .. if you use Apple Network Utility the OPEN ports are related to apache web server 80 and mail services 22, 445.  Basically every open port = service.
If you run network utility and 8080 does not respond then there is no service.
You can edit the apache configuration file on OSX to allow apache to serve web pages on port 8080 .. simply edit the listening ports on the httpd.conf file and add another listen on 8080 .. the file is located on the root of the Mac Hard Drive  in /etc/apache or /etc/apache2 folder .. you then simply stop and start web sharing and that will restart apache and enable listening on port 8080.
However there are many other services which can use port 8080 so the question really is ... what do you expect to happen on port 8080 on the mac?

If the website is trying to send information back to the mac on port 8080 then a web service such as apache could do the trick .. you should also ensure that the firewall on OSX is either off or has port 8080 allowed .. and also check any router you have in case there are other port blocks between the mac and the internet service.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dave BaldwinFixer of ProblemsCommented:
In windows I can use the firewall advanced settings to open a port(Listen) all the time.
You can 'open' a port in the firewall but unless there is a program or service that is listening at that port and responding to requests, a port scanner will not consider it 'open' because it is not doing anything.  This true for Mac, Windows, and Linux.
Chris SlackIT ConsultantAuthor Commented:
Thank you eoinosullivan.  This is the answer I was look for. I need to know what vehicle I can use to get that port listening.  Apache should be able to this. I will try it.

Thanks Again.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mac OS X

From novice to tech pro — start learning today.