Skip to content

Commit adaef50

Browse files
authored
Create ip_port.sh
1 parent 0f61e9c commit adaef50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ip_port.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ip a | grep inet |grep -vE '(inet6|host)' | awk '{print $2}' | cut -d"/" -f1 | while read line ; do echo "Connect to host on http://${line}$(ss -pluwnt | grep *: | grep -v :22 | awk '{print $5}'| sed 's/*//g' )" ; done

0 commit comments

Comments
 (0)