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
check ssh connection to remote host praveenbvarrier Shell Programming and Scripting 6 10-06-2008 12:46 PM
Serial Port Connection to a Sunfire V880 (having Solaris 10) Alchemist SUN Solaris 0 04-01-2008 02:12 AM
Cloning a socket connection, using other port numbers jonas.gabriel High Level Programming 4 12-10-2007 04:10 PM
how can i check if port is busy or if someone is using it ? umen IP Networking 1 01-28-2006 03:37 AM
Open Port 3306 for MySQL connection gdboling Security 4 04-22-2002 04:31 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 05-17-2006
tayyabq8's Avatar
tayyabq8 tayyabq8 is offline Forum Advisor  
Moderator
  
 

Join Date: Nov 2004
Location: Bahrain
Posts: 578
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
  #2 (permalink)  
Old 05-17-2006
amro1 amro1 is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 105
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?
  #3 (permalink)  
Old 05-18-2006
tayyabq8's Avatar
tayyabq8 tayyabq8 is offline Forum Advisor  
Moderator
  
 

Join Date: Nov 2004
Location: Bahrain
Posts: 578
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-18-2006 at 01:08 AM..
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 12:06 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