Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How should I choose a port number for my server?

Answer Posted / chaitanya

The list of registered port assignments can be found in STD 2 or RFC 1700. Choose one that isn't already registered, and isn't in /etc/services on your system. It is also a good idea to let users customize the port number in case of conflicts with other un- registered port numbers in other servers. The best way of doing this is hardcoding a service name, and using getservbyname() to lookup the actual port number. This method allows users to change the port your server binds to by simply editing the /etc/services file.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What pieces of information make up a socket?

901


What is socket address?

971


How can I tell when a socket is closed on the other end?

1292


Is tcp or unix socket faster?

789


What is socket address with example?

793


Are sockets files?

816


What is difference between socket () and serversocket () class?

816


Why do we need sockets?

759


What is a deep well socket?

866


How does unix socket work?

840


What is difference between socket and websocket?

842


Why sockets are used?

837


Whats the difference between select() and poll()?

1580


How can I set the timeout for the connect() system call?

1462


Can a single socket port be used for multiple applications?

834