Sponsored Content
Special Forums IP Networking netstat local and foreign address relationship. Post 302924608 by RudiC on Tuesday 11th of November 2014 05:09:17 AM
Old 11-11-2014
At risk of stating the obvious, any link or connection starts at a port on your local host and ends on some port on remote hosts (or vice versa). That's what the two mean. Example from my node:
Code:
Proto Recv-Q Send-Q Local Address   Foreign Address         State      
tcp        0      0 10.1.1.1:43025  unix.com:http           ESTABLISHED

Disregarding the first three columns it states that there's an established connection from my node on my private net using port 43025 to unix.com's www port, used for exactly the actual session.
This User Gave Thanks to RudiC For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Easy way to get local IP address

I needed to get a machine's local IP address when not root (so no ifconfig). Eventually, I arrived at this convoluted solution that grabs the unique local IP info from netstat... netstat -n -t | awk '{print $4}' | grep -o "*\.*\.*\.*" |\ grep -v "127.0.0.1" | sort -u ...however I... (5 Replies)
Discussion started by: simonb
5 Replies

2. IP Networking

IP Address not found in ifconfig/netstat

I'm working on an AIX Unix LPAR (AIX 3.5 00C3C9904C00 as returned by uname -a) I can access this box using telnet, port 22 using adress IP A and B A=AA.AA.XX.XX and B=AA.AA.YYY.YYY I can confirm these 2 are the same space, I can see I can't find address B listed anywhere... so I wonder what... (1 Reply)
Discussion started by: Isax50
1 Replies

3. Shell Programming and Scripting

Local system IP address in UNIX

We have requirement to get the local system IP address of whoever logined the DataBase(sqlplus) or any process in application server. Actually I connected to application server thru putty and then conencted to Database using sqlplus command. we have tried below commands : who -u|grep... (4 Replies)
Discussion started by: siri_886
4 Replies

4. Shell Programming and Scripting

Get Local IP address using Sed, Awk

Hi All, how to get solaris box local ip addresss in variable, using sed or awk utlities. Thanks, Mani Muthu (7 Replies)
Discussion started by: k_manimuthu
7 Replies

5. BSD

Link Local IPv6 Address

Hi, Am using FreeBSD7.4/i386 During IPv6 configuration, I added the following in rc.conf as Restarted IPv6 network using /etc/rc.d/network_ipv6 restart.. My problem is I need to set link local IPv6 address auto-configured.. Is my proceeding right?? I feel something missing to make... (0 Replies)
Discussion started by: Priya Amaresh
0 Replies

6. IP Networking

How to know local IP address in X-Terminal?

Im using a X-Terminal in my windows pc to connect to a Linux server. Is there a way to know my local IP address in my x-terminal console? Here are few commands which didnt help me: ss_cc@MGTS5026-13sh1:~> finger Login Name Tty Idle Login Time Where loadhlr ... (6 Replies)
Discussion started by: Arun_Linux
6 Replies

7. UNIX for Advanced & Expert Users

What is the foreign address?

hi i want to open port 9100 and the connect server could not to connect to my application this my results of netstat tulpn Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 localhost:9100 ... (3 Replies)
Discussion started by: mohammad alshar
3 Replies

8. Debian

How to change local IP address?

I have a new Ethernet device that has a default IP address on a different subnet and need to change it. I have a Debian 6.0 host connected to the device with a crossover cable and have changed the host /etc/hosts and /etc/networks files to the same subnet as the new device and rebooted. Ping... (2 Replies)
Discussion started by: snorkack59
2 Replies

9. Cybersecurity

Continual knocking on port 443 from foreign IP address

Hello, I have a server in our DMZ that only has ports 80 and 443 open to the public networks. It runs webmail for our 10K employees' accounts. It's not necessary for our employees to access the server from anywhere except North America so I have blocked access from most of the world due to... (5 Replies)
Discussion started by: randomxs
5 Replies

10. IP Networking

Can't get local IP address in getaddrinfo

Hi all, I am working with SIP protocol and am using SIPp to generate SIP traffic. But the call is not going through since I get the error; 2015-02-24 14:09:39:330 1424804979.330517: Can't get local IP address in getaddrinfo, local_host='NODE-01', local_ip=''. My ifconfig output is; ... (2 Replies)
Discussion started by: Junaid Subhani
2 Replies
llogin(1)						      General Commands Manual							 llogin(1)

NAME
llogin - Connects to a LAT service SYNOPSIS
/usr/sbin/llogin -d | service [-p tty] [-H rem_node] [-R rem_port] [-wpassword | -W] OPTIONS
Displays a list of learned services including the node name and rating. Specifies a local LAT tty device (tty) to use to connect to ser- vice. Either SVR4 or BSD tty devices can be specified. However, the tty device must already exist and be available for use. If no tty device is specified, llogin uses any available SVR4 tty device. If no available devices are found, llogin creates an SVR4 LAT tty device for the user. When llogin exits, the created tty device is removed. Specifies a remote host (rem_node) that offers service. This is helpful when more than one host offers a service. Specifies a remote port (rem_port) that offers service. Speci- fies a password for connecting to service when the remote service has password checking enabled. The password is not case sensitive and spaces are not allowed. If you use the -w option, you specify the password on the command line; it is visible. If you use the -W option, you are prompted for the password; it is not echoed (visible). DESCRIPTION
The llogin command enables Tru64 UNIX users to connect to LAT services offered by other nodes in the local area network (LAN). You do not need superuser privileges or node information in order to connect to LAT services. If you do not know what services are known to your local node, use the llogin -d command. If you want to perform simultaneous llogin connections, use the llogin -p command. To make the llogin connection establishment quicker, add the target hostname as a remote service by using the latcp command. EXAMPLES
The following command initiates a connection to service siteapp on any node and port through any local LAT tty device: llogin siteapp The following command initiates a connection to service siteapp on any node and port through local LAT tty device 620: llogin siteapp -p 620 The following command initiates a connection to service siteapp on any remote port on host HOSTX through local LAT tty device 620: llogin siteapp -p 620 -H HOSTX The following command initiates a connection to service siteapp on remote port TTY_Z on host HOSTX through local LAT tty device 620: llogin siteapp -p 620 -H HOSTX -R TTY_Z SEE ALSO
Commands: latcp(8) Network Information: lat_intro(7) llogin(1)
All times are GMT -4. The time now is 10:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy