SHELL get ip address shell - Net-Raft.com

Welcome aboard! We are happy you are here and wish you good net-raft!




Just a Web Code Solution
join us

how to get client ip address using shell ?


 290

SHELL


0

#!/bin/sh
#Simple request using curl from a shell script.
#If your OS supports a dual stack IPv4/IPv6 you can add -4 or -6 option
#to force protocol selection, e.g. $(curl -4 -s https://l2.io/ip).

myip=$(curl -s https://l2.io/ip)
echo "My IP is $myip"


By        
The power of the user (%)
62%



The most helpful SHELL solutions

how to get client ip address using shell ?how to get client ip address using shell ?SHELL

Click to see more ...

  290     52

get ip address shellget ip address shellSHELL

Click to see more ...

  185     18

Welcome aboard!
We are happy you are here and
wish you good net-raft!