0

I was trying to get the user IP by using: $request->ip(); but this return me the localhost ip 127.0.0.1 here is my code:

 public function index(Request $request)
    {
        $userIP= $request->ip();
        return view('contact',compact('userIP'));
    }

*How can I get the client or user's real IP address ?

0 Answers0