获得我的IP地址 [英] Getting my ip address

查看:218
本文介绍了获得我的IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个小的网络上的计算机,所以我的IP是192.168.2.100。

I have a computer on a small network, so my ip is 192.168.2.100.

我想把我的真实IP。我下载无IP客户端,但只是好像很多的麻烦这么简单的事。

I am trying to get my real ip. I download the no-ip client but that just seems like a lot of trouble for such a simple thing.

我创造了这个PHP脚本得到了 http://www.ip-adress.com/ 页面和检索到的IP它给了我。

I created this php script that got http://www.ip-adress.com/ page and retrieved the ip it gave me.

有没有更简单的方法吗?无论是使用C,WSH或东西。或者,如果有是在PHP一个简单的方法,请告诉我。

Is there a simpler way? Either using C, WSH or something. Or if there is an easier way in php please tell me.

当我得到的IP我将它上传到我的FTP站点,这样我可以看到工作中的IP。

When I get the ip I'll uploaded it to my ftp site so that I can see the ip from work.

推荐答案

没有,还有一个更简单的方法是不是真的。您的计算机真的不知道公网IP它的背后 - 可能有任何数量的它和公共互联网之间的NAT的层。它只知道的是,它在192.168.2.100接收消息,并通过网关192.168.2.1在发送传出的消息。它不知道发生了什么包打网关之后。

No, there's not really an easier way. Your computer really doesn't know the public IP it's behind -- there could any number of layers of NAT between it and the public internet. All it knows is that it receives messages at 192.168.2.100, and sends outgoing messages through the gateway at 192.168.2.1. It has no idea what happens after the packet hits the gateway.

这篇关于获得我的IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆