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

get ip address shell


 137

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     Created   
The power of the user (%)
7%



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 ...

  234     52

get ip address shellget ip address shellSHELL

Click to see more ...

  137     18