Raharu escribió:
Eso te devuelve la ip local, no la pública y no tienen porque coincidir
eth0 Link encap:Ethernet HWaddr 00:02:44:1B:B3:B4
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:65 errors:0 dropped:0 overruns:0 frame:0
TX packets:170 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:8880 (8.6 KiB) TX bytes:31895 (31.1 KiB)
Interrupt:10 Base address:0xa000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:237 errors:0 dropped:0 overruns:0 frame:0
TX packets:237 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15040 (14.6 KiB) TX bytes:15040 (14.6 KiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:81.41.170.250
Pues no sé. Juraría que a mí me muestra las 2.