The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


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 !!


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
check ssh connection to remote host praveenbvarrier Shell Programming and Scripting 5 05-20-2008 04:22 AM
Serial Port Connection to a Sunfire V880 (having Solaris 10) Alchemist SUN Solaris 0 03-31-2008 11:12 PM
Cloning a socket connection, using other port numbers jonas.gabriel High Level Programming 4 12-10-2007 12:10 PM
how can i check if port is busy or if someone is using it ? umen IP Networking 1 01-27-2006 11:37 PM
Open Port 3306 for MySQL connection gdboling Security 4 04-22-2002 01:31 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-17-2006
tayyabq8's Avatar
Registered User
 

Join Date: Nov 2004
Location: Kuwait
Posts: 510
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
How to check the TCP/UDP port of a connection

Hi,

Users are connecting thru a KCML Client to UNIX machine, and I want to know which TCP/UDP port that client uses? How can I check the port of a user logged in?

Regards,
Tayyab
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-17-2006
Registered User
 

Join Date: Mar 2006
Posts: 106
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Here...

Can you specify the question please as there are standard and ephemeral ports on client and server? Which one you have in mind the port for default incoming/outgoing connection or a port for an actual connection?
Reply With Quote
  #3 (permalink)  
Old 05-17-2006
tayyabq8's Avatar
Registered User
 

Join Date: Nov 2004
Location: Kuwait
Posts: 510
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Host refused connection

Hi,

Actually, I want to know the port where the remote party is coming from. Any ways, I checked my syslog after logging in from the same client and found the following:
Code:
May 17 15:53:43 unix1 in.telnetd[10742]: connect from AGB
It means my KCML client, comes thru telnet(TCP port 23), I forwarded this port 23 from my router to UNIX box(for Remot users i.e. comming from the internet), it reaches UNIX because I can see its log in syslog. But client gets "Host refused connection". There is no problem for the connections comming from local subnet or from the subnets for routes are already added. I checked my /etc/inetd.conf file and found following there:
Code:
telnet  stream  tcp     nowait  root    /usr/sbin/in.tcpd       in.telnetd
telnet  stream  tcp     nowait  root    /usr/sbin/in.telnetd    in.telnetd
So this is not the problem either, as well as hosts.allow has the entry to allow telnet comming from unknown host. I tried to telnet UNIX box from the Internet, but no luck. My default gateway is set properly also and system accepts connections from VPN without any problem, so there is no problem for the connections from unknown hosts.

And I don't know also where system logs the record of rejected connections. I'm totally blank here. Any idea.....

FYI, I'm at SCO UNIXWARE 7.1.1.


Regards,
Tayyab

Last edited by tayyabq8 : 05-17-2006 at 10:08 PM.
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB 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 -7. The time now is 12:26 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102