C#获取IP的方式有很多种,这里通过http://www.ipip.net/这个稳定的在线IP库的来获取公网IP。 ...
直接CURL获取,页面返回结果[test@Test01~]$curlhttp://members.3322.org/dyndns/getip
218.1.1.10
分类:
系统相关 时间:
2016-04-20 15:16:07
阅读次数:
180
又是不知道多久没更新过博客了,这篇其实早就想好了要写不过一拖就是几个月,最近拖延症真是疯狂爆发了。先说一下今天想写什么吧,其实很简单,就是如何使用PowerShell来实时的获取一台计算机的公网IP地址。公网IP是什么就不需要说了,实时获取公网IP的意义在于什么呢?首先来..
分类:
系统相关 时间:
2016-04-07 18:41:22
阅读次数:
2934
vbs-获取公网IP调用邮件控件实现邮件的自动发送到指定邮箱-可直接使用复制使用onerrorresumenext
setie=CreateObject("internetexplorer.application")
ie.navigate("http://ip.cn/")
ie.Visible=False
Whileie.busyOrie.readystate<>4
WEnd
SetregEx=NewRegExp
regEx.Pa..
分类:
其他好文 时间:
2016-01-22 18:32:00
阅读次数:
153
获取局域网ip和mac(如果电脑没有直接连接外网),否则获取公网ip 通过第三放获取公网ip package?org.twt.zipjar.test;
import?java.io.BufferedReader;
import?java.io.IOException;
import?java.io.Input...
分类:
编程语言 时间:
2015-09-05 23:58:32
阅读次数:
507
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;using System.Threading.Tasks;us...
分类:
Web程序 时间:
2015-07-18 12:30:53
阅读次数:
133
#mailserverconfiguration$smtpServer="发送地址SMTP"$smtpuser="邮件地址"$smtpPassword="密码"#Createthemailmessage$mail=New-ObjectSystem.Net.Mail.MailMessage#SettheAddresses$mailaddress="邮件地址"$users=@()$users=Import-Csv-Path"c:\user.csv"用户邮箱foreach($us..
分类:
其他好文 时间:
2015-05-13 17:11:19
阅读次数:
279
uses msxml, RegularExpressions;
function GetPublicIP:string;
var
req: IXMLHTTPRequest;
begin
req := CoXMLHTTP.Create;
req.open('get', 'http://city.ip138.com/ip2city.asp', False, EmptyStr, Empty...
分类:
其他好文 时间:
2015-03-13 18:50:48
阅读次数:
119
本工具是通过访问 http://city.ip138.com/ip2city.asp 并解析其返回的内容来取得本机的公网 IP 的。 源码如下。unit PublicIPGetter;interfacefunction GetPublicIP: string;implementationuse...
分类:
其他好文 时间:
2015-01-20 17:13:11
阅读次数:
339
1。获取局域网ipIPAddress ipAddr = Dns.Resolve(Dns.GetHostName()).AddressList[0];//获得当前IP地址string ip=ipAddr.ToString() ;2。获取公网ip private static string GetI.....