Print out my current http connection

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Print out my current http connection
# 1  
Old 05-24-2017
Print out my current http connection

Good evening
Need you help please

I just wanna to print out my current https connection and other users http connection which the application resides, for instance i connect to the below url to login into the application:

Code:
https://serverappp01:14100/portal/Portal.html#

In another session from my pc i login to serverappp01 which is Linux in order to print out my current http connection and others users connection to the application

I run this netstat command and it brings me back a bunch of one hundred connections but not the desired ones like my connections and user connections connected to the application via url

Code:
netstat -an |grep :8080 tcp

Maybe you can help me out with this o dont know with lsoft command coulad approach this ?


Code:
Code:
lsoft .i 8080

Thanks for your help in advanced
# 2  
Old 05-24-2017
I think you want to look for connections to port 14100, because that is specified in your URL.

The netstat command is looking for port 8080 so will get other things.

The last command I think should be more like lsof -i tcp:14100 which should return a list of processes with this port open, but that probably won't tell you much about where the connection is from, unless it is on the local host, in which case you should get the client processes listed too, which might help.



What are you actually trying to get at?


Kind regards,
Robin
# 3  
Old 05-24-2017
Thanks for your help, primary I am trying to get is my current front connection via operating system, thats why i use netstat command.

Thanks for yourr help in advanced
# 4  
Old 05-25-2017
To clarufy, from my PC i open the browser and connected to the application in this URL:

Code:
https://serverappp01:14100/portal/Portal.html#

I open another session login to serverappp01 which is linux, and I just want to see by operating system my session i get connected from my PC, so thats why Im trying to use netstat command.

I appreciate your help in advanced
# 5  
Old 05-25-2017
After you have logged in, what output do you get from the netstat command that you think includes the information you want to extract?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Tput cup, print on current line?

Heyas I'm thinking about a new approach for my core display, basicly as it should make aligments easier. Issue i'm currently facing, is tput cup capable of printing on the current line? My best achievements were: :) tui $ tput cup - 60;echo " ------ testing" ------ testing... (5 Replies)
Discussion started by: sea
5 Replies

2. Shell Programming and Scripting

Compare between current and next line and print

Dear All I want below to compare two Consecutive line(i.e. current and next line). Based in that i need OP. Below is the IP file in that in i find "M" and if in next line i find "*" then i need both line in single line. If i dont find "*" in next line then i need to put commend "DOWN" . I am... (4 Replies)
Discussion started by: jaydeep_sadaria
4 Replies

3. Shell Programming and Scripting

Print the current directory using perl

Hi I have this code to print the current directory using Perl use Cwd qw(abs_path); my $path = abs_path($0); print "$path\n"; But it is displaying my perl source code file along with the directory. like this C:\Perl\duration.pl But I want it only to display this... (1 Reply)
Discussion started by: srijith
1 Replies

4. UNIX for Dummies Questions & Answers

Awk to print data from current and previous line

Hi guys, I have found your forum super useful. However, right now I am stuck on a seemingly "simple" thing in AWK. I have two columns of data, the first column in Age (in million years) and the second column is Convergence Rate (in mm/yr). I am trying to process my data so I can use it to... (2 Replies)
Discussion started by: awk_noob_456
2 Replies

5. UNIX for Dummies Questions & Answers

print all dates 100 days from current date

can anyone please suggest me on ideas to write a script which has to go back to 100 days from 'current date' and print the date of each day starting from 100th day to current day. (korn shell please) Thanks Pavan (5 Replies)
Discussion started by: pavan_test
5 Replies

6. SuSE

Caused by: java.io.IOException: open HTTP connection on zLinux

Hi, As you can see by the title, I'm getting a "Caused by: java.io.IOException: open HTTP connection" error on a zLinux machine trying to run a java applet. This same jar file works on a Windows machine. My previous version of the jar file worked on the zLinux machine. I know this... (2 Replies)
Discussion started by: jla_8
2 Replies

7. Shell Programming and Scripting

Print previous, current and next line using sed

Hi, how can i print the previous, current and next line using sed? current line is the matching line. The following prints all lines containing 'Failure' and also the immediate next line cat $file | sed -n -e '/Failure/{N;p;}' Now, i also want to print the previous line too. Thanks,... (8 Replies)
Discussion started by: ysrinu
8 Replies

8. UNIX for Dummies Questions & Answers

awk to print current date?

List, I want to print the first line of my text file (say "me you"), preceded by the current date/time. Something like (pseudo code): awk '{print date,$1}' I don't have a lot of awk knowledge (understatement), so forgive me if the answer is obvious... (3 Replies)
Discussion started by: philipz
3 Replies

9. Shell Programming and Scripting

How to print current month - 1 in string format

I need to get the current month -1 in string format, like Feb-2006. I am using k shell. Any help is appreciated. (3 Replies)
Discussion started by: mogli4
3 Replies

10. Programming

may be simple but i don't know -- Print current date from C program

How to print current date of the Unix system accessing thru C++ program ? I wrote like this #include <time.h> ....... time_t tt; struct tm *tod; .... time(&tt); tod = localtime(&tt); cout << tod->tm_mon + 1 << "/" << tod->tm_mday << "/" ... (6 Replies)
Discussion started by: ls1429
6 Replies
Login or Register to Ask a Question