listening on the same port - what happens?

Posted on 2007-10-17
Last Modified: 2010-04-01

I'm using an opensource library which lets you listen on a port of your choice for an image transfer protocol. I don't know any of the lower level details.

Administrators usually keep port 80 open (this is the http port right?) - is it possible to have an application listen on port 80? I don't know much about this but I would imagine the app expecting stuff based on this special image transfer protocol would get confused about stuff it was getting from web requests of some sort... anyway just some general info would be great,

Question by:DJ_AM_Juicebox
    LVL 86

    Accepted Solution

    >>is it possible to have an application listen on port 80?

    Yes, but only if there is no other listener on that port so far. So, unless you are running a proxy or a web server on that machine, you should be fine.

    Author Comment

    LVL 53

    Expert Comment

    You can however pick any port freely in the 49152 - 65535 range, and use that. These are ports you can use without an IANA registration, and they are unlikely to clash with an already open port.

    80 is indeed the standard port for HTTP. So, unless you're gonna use the HTTP protocol, it's not advised (although entirely possible) to use port 80.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
    Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
    The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
    The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now