IP

Returns the remote IP address of the request.

  1. c.IP() string
  1. app.Get("/", func(c *fiber.Ctx) {
  2. c.IP() // "127.0.0.1"
  3. })