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 > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
need help with User Defined Function user_prady Shell Programming and Scripting 11 11-18-2007 08:51 PM
defined value not showing....in the result happyv Shell Programming and Scripting 1 01-26-2007 04:58 AM
environment variable is not defined alien12 Linux 0 02-09-2006 11:12 PM
pre defined variables sumsin High Level Programming 7 11-30-2005 12:13 PM
User defined signal 1 nitesh_raj AIX 0 01-29-2005 02:20 AM

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 11-21-2002
yls177
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
111.22.31.123:1554, port 1554 defined where?

hi, given this 111.22.31.123:1554, isnt this 1554 defined in /etc/services? i am on aix. and this 1554 is a port?

thanks
  #2 (permalink)  
Old 11-21-2002
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,650
Are you talking about a 'client port' or a 'server port' ? Client ports are not mapped in /etc/services. Generally, (not multicast) TCP/IP connections have two endpoints, the listening socket and the client socket.

It would be helpful to post the results of the command:

Code:
netstat -an | grep 111.22.31.123:1554
or simply:

Code:
netstat -an | grep 1554
  #3 (permalink)  
Old 11-21-2002
yls177
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
netstat -an | grep 1554 gives me the below

tcp4 0 0 *.1580 *.* LISTEN



and from your reply, i gather the following:

1) server ports are mapped in /etc/services?

2) where is the client port defined?

3) from the output, this 1580 port is a listening port then?

thanks!
  #4 (permalink)  
Old 11-21-2002
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,650
Well, first please help me understand the puzzle in your reply:

Quote:
netstat -an | grep 1554 gives me the below

tcp4 0 0 *.1580 *.* LISTEN
that is simply is not possible
  #5 (permalink)  
Old 11-22-2002
jurrien jurrien is offline
Registered User
  
 

Join Date: Sep 2000
Posts: 70
it is always possible to run things like irc deamon on such ports ;-) or that someone is running something ont hat withouth asking (above 1K users can run services ;-) ).
  #6 (permalink)  
Old 11-22-2002
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,650
It is 'not possible' because you can't grep for a number in a line and get a line without the number (as you have written the command). (not a networking puzzle, a grep issue)

That is the puzzle......... the output of the grep command is not possible.
  #7 (permalink)  
Old 11-22-2002
yls177
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
NEO, my understanding to your reply is that my command as below

netstat -an | grep 1554

contains the number 1554 BUT

the output as belows has no 1554 but 1580

tcp4 0 0 *.1580 *.* LISTEN

and according to u, there is NO WAY for this to happen....., right?


Okay, i have made an typo error, the command and output should be as below

netstat -an | grep 1580 gives me the below

tcp4 0 0 *.1580 *.* LISTEN

is this okay?

back to my three little questions.. Thanks pal!
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 03:18 AM.


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