![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| NFS write failed for server.....error 11 (RPC: Server can't decode arguments) | sap4ever | SUN Solaris | 3 | 05-08-2008 08:20 AM |
| trying to write a script to loop through a port info file | rcon1 | Shell Programming and Scripting | 5 | 01-09-2008 06:59 AM |
| how to write application for 32 com port | amitpansuria | High Level Programming | 6 | 08-10-2007 01:50 AM |
| What application is using the port | umen | UNIX for Dummies Questions & Answers | 7 | 05-22-2006 11:30 PM |
| How can I check what port addresses used the application | eykyn17 | IP Networking | 1 | 02-16-2006 12:58 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|