The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Doubt salil2012 UNIX for Dummies Questions & Answers 1 03-05-2009 11:33 AM
doubt in awk jisha Shell Programming and Scripting 4 04-16-2008 04:02 AM
disabled telnet now need port 23 or port 22 panzerkw SUN Solaris 3 03-05-2007 03:08 PM
doubt it sed esham Shell Programming and Scripting 2 03-08-2005 01:52 AM
BitTorrent port 6969 blocked... how to get around the blocked port PenguinDevil IP Networking 1 05-05-2004 11:03 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-20-2009
salil2012 salil2012 is offline
Registered User
  
 

Join Date: Feb 2009
Location: India
Posts: 45
Doubt with Information of particular port

Hi experts,

I tried telnet command :
telnet 192.168.1.22 80

80 is port number.
then ^] and i pressed ENTER

but NO OUTPUT, WHY?

My problem is I want to know the applications running on any particular port number.Which command will be uuseful? either telnet or ?
  #2 (permalink)  
Old 03-20-2009
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,837
Port 80 is the HTTP server. If you'd read up on the HTTP protocol, it works by the client first sending commands, and only after this is done the server responds (repeat as necessary).
Try this: telnet 192.168.1.22 80. As soon as it's connected, enter "HEAD / HTTP/1.0" followed by hitting return twice. In the output, look for a line like this
Code:
Server: Apache/2.2.3 (Linux/SUSE)
This tells you that the server uses Apache 2.2.3 running atop SuSE Linux.

Your other option is to install nmap and use the service version scan.
  #3 (permalink)  
Old 03-20-2009
salil2012 salil2012 is offline
Registered User
  
 

Join Date: Feb 2009
Location: India
Posts: 45
Thanks pludi,
But my altimate aim is to know :

What all are the application runninig on any particular port number either
port 80 or 22 doesn't matter. I have just tried telnet for the same but
i need the right command for this:

What all are the application runninig on any particular port number either
port 80 or 22 doesn't matter ? ?
  #4 (permalink)  
Old 03-21-2009
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 730
The lsof(8) command can be run as follows:
Code:
# lsof -i
COMMAND    PID  USER   FD   TYPE DEVICE SIZE NODE NAME
avahi-dae 5033 avahi   14u  IPv4  15387       UDP *:mdns 
avahi-dae 5033 avahi   15u  IPv4  15388       UDP *:33378 
cupsd     5081  root    2u  IPv4  15468       TCP localhost:ipp (LISTEN)
hddtemp   5136  root    0u  IPv4  15530       TCP localhost:7634 (LISTEN)
dhclient  6014  root    5w  IPv4  20112       UDP *:bootpc 
thunderbi 9118  tony   32u  IPv4  88273       TCP laptop.local:47532->ey-in-f111.google.com:imaps (ESTABLISHED)
thunderbi 9118  tony   33u  IPv4  88277       TCP laptop.local:54941->moz.com01.nslb.sj.mozilla.com:www (ESTABLISHED)
thunderbi 9118  tony   34u  IPv4  88282       TCP laptop.local:58086->2.stage.mozillamessaging.com:www (ESTABLISHED)
thunderbi 9118  tony   35u  IPv4  88294       TCP laptop.local:38661->1.stage.mozillamessaging.com:www (ESTABLISHED)
thunderbi 9118  tony   36u  IPv4  88295       TCP laptop.local:38662->1.stage.mozillamessaging.com:www (ESTABLISHED)
#
And as you can see list what process has opened what port. See also http://www.opensource.apple.com/darw...f/00QUICKSTART.
  #5 (permalink)  
Old 03-23-2009
salil2012 salil2012 is offline
Registered User
  
 

Join Date: Feb 2009
Location: India
Posts: 45
thanks TonyFullerMalv,
But can u please tell me which of the column will give me the port no here..
# lsof -i
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
avahi-dae 5033 avahi 14u IPv4 15387 UDP *:mdns
avahi-dae 5033 avahi 15u IPv4 15388 UDP *:33378
cupsd 5081 root 2u IPv4 15468 TCP localhost:ipp (LISTEN)
hddtemp 5136 root 0u IPv4 15530 TCP localhost:7634 (LISTEN)
dhclient 6014 root 5w IPv4 20112 UDP *:bootpc
thunderbi 9118 tony 32u IPv4 88273 TCP laptop.local:47532->ey-in-f111.google.com:imaps (ESTABLISHED)
thunderbi 9118 tony 33u IPv4 88277 TCP laptop.local:54941->moz.com01.nslb.sj.mozilla.com:www (ESTABLISHED)
thunderbi 9118 tony 34u IPv4 88282 TCP laptop.local:58086->2.stage.mozillamessaging.com:www (ESTABLISHED)
thunderbi 9118 tony 35u IPv4 88294 TCP laptop.local:38661->1.stage.mozillamessaging.com:www (ESTABLISHED)
thunderbi 9118 tony 36u IPv4 88295 TCP laptop.local:38662->1.stage.mozillamessaging.com:www (ESTABLISHED)
#
  #6 (permalink)  
Old 03-24-2009
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 730
The port number is after the colon, some have been translated into their names using their respective numbers from /etc/services presumably, .e.g.:

:7634
or
:www (port 80)
or
:ipp (port 631)
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:57 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0