Application to run on ports


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Application to run on ports
# 1  
Old 07-29-2008
Application to run on ports

I do not have much idea about ports.

How can i make an application(written in C) to run on a specific port ?

Does the code internally written in C says about port number where the application to run ? Can i make an application to select port dynamically which are closed(other than standard ports for telnet, ftp ...) ?

Does some how port numbers are related to hardware ?

Thanks in advance !
# 2  
Old 07-29-2008
check /etc/services file which will give detailed information about ports used by which application.
# 3  
Old 07-29-2008
Oh, Beej's guide gives you answers to most (if not all) of your questions.

Beej's Guide to Network Programming
# 4  
Old 07-30-2008
Error

Thanks ! It was useful and interesting guide to read.

I did not get answer to my last question out of it ?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Run an application in shell script

I run the following command using the command line. I need to run the same command in shell script : ./sas.server start start is a parameter that passes to start.server to startup services within start.server. the path to sas.server is /path/Lev1 Here is my code: #!/bin/sh set... (3 Replies)
Discussion started by: dellanicholson
3 Replies

2. Debian

How to run windows application in Ubuntu?

HI ! all I have some model which works fine in windows 7 OS with matlab program I want to run all those from Ubuntu 12.04 32-bit OS. is there any provision to run windows applications? wine I tried, its not working, if any other available kindly explain the usage also Note : Dual boot ... (5 Replies)
Discussion started by: Akshay Hegde
5 Replies

3. Shell Programming and Scripting

Unable to run application using ssh

I'm testing a C++ based application (HLR) in my solaris system. Whenever i start the application remotely from some other solaris server using ssh command the application throws an error and goes down. command i used: ssh root@192.168.151.77 "./start_hlr.sh" Below is the error observed : ... (1 Reply)
Discussion started by: Arun_Linux
1 Replies

4. UNIX for Dummies Questions & Answers

Run C# .NET Application in Unix

I have an application I wrote that is designed to run on a windows system but now starting to think I would rather be using Unix. Would the application have to be 100% rewritten to work on unix, or is there something I could install that would allow me to run my .NET application inside unix? (2 Replies)
Discussion started by: redbrad0
2 Replies

5. Shell Programming and Scripting

Run application at startup

We have a Windows Service written in C# ported over to linux using Mono Develop... The code is working 100% when we run a script file which runs the exe... but we want the application to run at startup.... The application gathers info of the computer eg. Hard Disk Space etc... And compress it into... (1 Reply)
Discussion started by: yodzaan
1 Replies

6. Programming

how to make application run fast

I do some try on one application to know how to fasten a application root@localhost:/tmpfs> ./pbzip2 -p2 -f -k libc5.cvs.tar Average Time:22.578 Min Time:22.542 Max Time:22.594 First: I need to say my setting: using tmpfs: mount -t tmpfs -o size=200m,nr_inodes=10k,mode=777 tmpfs /tmpfs ... (2 Replies)
Discussion started by: yanglei_fage
2 Replies

7. Red Hat

application to be run on machines connected in same network

I have a set up of 5 machines which are connected in same network. Now i want to run a small application so that those machines are not ideal. (0 Replies)
Discussion started by: pradeepreddy
0 Replies

8. Shell Programming and Scripting

Doubt with How to run an application automatically?

Dear sir, I want to know if i shut-down my system and while starting it next time automatically one application starts running, Is there any way? I an using Suse linux OS. PLz Help me! (4 Replies)
Discussion started by: salil2012
4 Replies

9. Shell Programming and Scripting

How to run an application installed in another unix pc?

Do you guys have any suggestions? hpterm -e rlogin <another unix pc> ??? (1 Reply)
Discussion started by: jehrome_rando
1 Replies

10. Shell Programming and Scripting

run a application from a remote server via script?

I have a ksh script that does a bunch of things, then runs telnet server_b I then manually login, manually run one command (which launches an application with display back to my workstation), then logout at which point the main script takes back over, runs something else, then ends. Is... (4 Replies)
Discussion started by: yankee428
4 Replies
Login or Register to Ask a Question