diff --git a/app/Http/Livewire/ShowIpTest.php b/app/Http/Livewire/ShowIpTest.php index 7603265..902a89c 100644 --- a/app/Http/Livewire/ShowIpTest.php +++ b/app/Http/Livewire/ShowIpTest.php @@ -9,6 +9,12 @@ class ShowIpTest extends Component { public string $ipId = ''; + public function mount() + { + // Obtener la IP del servidor como fallback + $this->ipId = Request::ip(); + } + public function render() { return view('livewire.show-ip-test'); diff --git a/resources/views/livewire/show-ip-test.blade.php b/resources/views/livewire/show-ip-test.blade.php index 6d82106..cca4225 100644 --- a/resources/views/livewire/show-ip-test.blade.php +++ b/resources/views/livewire/show-ip-test.blade.php @@ -1,8 +1,63 @@ -
-
- -

Tu IP es:

-
+
+
+
+

Información de IP

+ + +
+

IP detectada por el servidor:

+

+
- + +
+

Tu IP pública real:

+
+ Cargando... +
+
+

+
+
+ +
+
+ + + +
+