which port to write my server application?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users which port to write my server application?
# 1  
Old 12-19-2005
which port to write my server application?

I want to write a server application that would accept HTTP requests from client.

The server would be on a machine that has no connection to the INTERNET.
The clients that would be posting their HTTP requests would be doing so through webbrowser .Thus it would be sort of intranet application.

While doing the homework for the same I am faced with few queries

1> As I gathered from couple of Internet references it seems that port 80,8080 are the two ports that I can utilise for this.
So to look up for whether these are free on the UNIX machine(SunOS ompmum4 5.9 Generic_117171-02 sun4u sparc SUNW,Ultra-60) i put "netstat-a" .
It showed me
ompmum4 rchakra> netstat -a|grep 80
*.32780 Idle
*.8018 Idle
*.32800 Idle
*.8017 Idle
ompmum4.32804 ompmum4-ntsd.3300 256 0 49588 0 ESTABLISHED
ompmum4.32805 ompmum4-ntsc.2500 256 0 49664 12 ESTABLISHED
ompmum4.32806 ompmum4-ntse.3000 256 0 49508 0 ESTABLISHED
ompmum4.32807 ompmum4-ntse.3100 256 0 49664 0 ESTABLISHED
*.32808 *.* 0 0 49152 0 LISTEN
*.32809 *.* 0 0 49152 0 LISTEN
apomp.32833 ap06.35892 68056 0 65220 0 ESTABLISHED
apomp.32839 ap14.45009 68056 0 66292 0 ESTABLISHED
apomp.32835 ap11.34654 68056 0 66144 0 ESTABLISHED
apomp.32837 ap16.45938 68056 0 65344 0 ESTABLISHED
apomp.32841 ap31.34468 68056 0 66492 0 ESTABLISHED
apomp.32849 ap23.37651 68056 0 66052 0 ESTABLISHED
apomp.32859 ap25.37785 68056 0 65852 0 ESTABLISHED
apomp.32867 ap33.34509 68056 0 65912 0 ESTABLISHED
apomp.32861 ap12.45480 68056 0 66292 0 ESTABLISHED
apomp.32843 ap24.43374 68056 0 66608 0 ESTABLISHED
apomp.32855 ap18.45263 68056 0 66376 0 ESTABLISHED
apomp.32851 ap13.39078 68056 0 66024 0 ESTABLISHED
apomp.32847 ap32.36679 68056 0 66376 0 ESTABLISHED
apomp.32846 ap32.36680 67824 0 66608 0 ESTABLISHED
apomp.32857 ap17.39199 68056 0 65684 0 ESTABLISHED
apomp.32845 ap15.40217 68056 0 65860 0 ESTABLISHED
apomp.32863 ap05.34465 68056 0 65332 0 ESTABLISHED
apomp.32853 ap21.37309 68056 0 65976 0 ESTABLISHED
apomp.32865 ap26.43366 68056 0 65220 0 ESTABLISHED
apomp.32869 ap22.43120 68056 0 66292 0 ESTABLISHED
*.8001 *.* 0 0 49152 0 LISTEN
*.8080 *.* 0 0 49152 0 LISTEN
localhost.32940 localhost.8080 49152 0 49152 0 ESTABLISHED
localhost.8080 localhost.32940 49152 0 49152 0 ESTABLISHED
localhost.32988 localhost.8080 49152 0 49152 0 ESTABLISHED
localhost.8080 localhost.32988 49152 0 49152 0 ESTABLISHED
localhost.33019 localhost.8080 49152 0 49152 0 ESTABLISHED
localhost.8080 localhost.33019 49152 0 49152 0 ESTABLISHED
localhost.33032 localhost.8080 49152 0 49152 0 ESTABLISHED
localhost.8080 localhost.33032 49152 0 49152 0 ESTABLISHED
localhost.33599 localhost.8080 49152 0 49152 0 ESTABLISHED
localhost.8080 localhost.33599 49152 0 49152 0 ESTABLISHED
localhost.57155 localhost.8080 49152 0 49152 0 ESTABLISHED
localhost.8080 localhost.57155 49152 0 49152 0 ESTABLISHED
localhost.57197 localhost.8080 49152 0 49152 0 ESTABLISHED
localhost.8080 localhost.57197 49152 0 49152 0 ESTABLISHED
ompmum4.telnet 97.253.122.2.60485 68056 0 49232 0 ESTABLISHED
localhost.33048 localhost.8080 49152 0 49152 0 ESTABLISHED
localhost.8080 localhost.33048 49152 0 49152 0 ESTABLISHED
localhost.33052 localhost.8080 49152 0 49152 0 ESTABLISHED
localhost.8080 localhost.33052 49152 0 49152 0 ESTABLISHED
localhost.33053 localhost.8080 49152 0 49152 0 ESTABLISHED
localhost.8080 localhost.33053 49152 0 49152 0 ESTABLISHED
localhost.64181 localhost.64180 49152 0 49152 0 TIME_WAIT
ompmum4.8001 ompmum4.64182 49152 0 49152 0 TIME_WAIT
ompmum4.8001 ompmum4.64194 49152 0 49152 0 TIME_WAIT
*.8001 *.* 0 0 49152 0 LISTEN

============

From this I get a notion that port 80 is free perhaps.

But I have a problem...

To write server codes for port 80 I would need a root password which I do't have.
Also port 8080 is already taken it seems.

So I was left with a question...


Can I use any other unused port for this ...

Given the fact that this HTTP application will never be utilised outside the intranet I have a strong notion that this can be done.

Could anyone pl guide me with your advice.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help Generate new port base on the last port but not in used by other application

Hi Expert, Anybody can figure it out on how to generate new port base on my last port let say my last port var1=124 and increment for new port 125,126 but this new two ports need to look at first if this port is not in used by any service, if the port is in used add 1 to new port and if in used... (6 Replies)
Discussion started by: lxdorney
6 Replies

2. UNIX for Advanced & Expert Users

How to write if condition in shell script for application server?

Hi all, I have a code to create folder in application server through shell script and i want to create if conditional based folder folder=$HOME/test/sample/whatever if ; then echo "$folder already exists, not created." else mkdir -p "$folder" > /dev/null 2>&1 ... (7 Replies)
Discussion started by: Boost
7 Replies

3. HP-UX

how to check remote server port listening from application.

Hi, I have an application running on HP-UX, from this application I need to findout if the port number. lets say 7890,7891, 7892 are listening on the remote server running on HP-UX. Is there any way of doing it using "system()" function or any other? I noticed that nmap, netcat are not... (0 Replies)
Discussion started by: einsteinBrain
0 Replies

4. Programming

Write own decryption application

Hi , I need some help as I dont know where to start. I need to create a unix decryption application. The information I have been given is this so far: the specification of the encryption process is: NET 2 Cryptography classes. RijndaelManaged encryption algorithm ... (13 Replies)
Discussion started by: caciing_help
13 Replies

5. Shell Programming and Scripting

command to know the application running of the port

Hi, is there any command to findout that which application is using the particular port. or whether any port is occupied with the specfic process id ? (4 Replies)
Discussion started by: mail2sant
4 Replies

6. Linux

MQ application port 1414

Hi All, I have two MQ (port) 1414 established (going out) $ netstat -an | grep 1414 tcp 0 0 0.0.0.0:1414 0.0.0.0:* LISTEN tcp 0 0 20.76.1.1:32855 142.8.1.3:1414 ESTABLISHED tcp 0 0... (2 Replies)
Discussion started by: itik
2 Replies

7. Shell Programming and Scripting

trying to write a script to loop through a port info file

Below is part of a script i have written to loop through part of a port info file. How do i continue the script to get info for OS Device Name, manufacturer and then put information into an array? HBA Port WWN: 10000000c9420b4b OS Device Name: /dev/cfg/c10 Manufacturer: Emulex... (5 Replies)
Discussion started by: rcon1
5 Replies

8. Programming

how to write application for 32 com port

Dear Sir, i m going to use NP5610-16 moxa device for multiport serial communication. i m using fedora-core 6 o.s. after installation it will detect serial ports as /dev/ttyr0,/dev/ttyr1...ttyr32. there are total 32 com ports. now i want to write application which monitor all serial ports and... (6 Replies)
Discussion started by: amitpansuria
6 Replies

9. UNIX for Dummies Questions & Answers

What application is using the port

Hello im using sunos im trying to lock down application that taking my port when Im doing "netstat -in | grep 8080" Is gives me the indication that the port is taken but no indication who is taken the port. How can I find out who is taking my port? Thanks allot (7 Replies)
Discussion started by: umen
7 Replies

10. IP Networking

How can I check what port addresses used the application

Hello Mentors! I am a new here in the furom, i hope somebody can understand my problem. Basically we have an application here called unigraphics and being installed per station and the setup is look like this. 1. installed unigraphics UGNX3 version on every station 2. some are installed in... (1 Reply)
Discussion started by: eykyn17
1 Replies
Login or Register to Ask a Question