如何使用任务计划程序重新启动调制解调器以更改您的 IP?
我需要调用一个网络服务,但它会在您发送请求时记录用户IP..所以您不能调用它两次,因为您的IP已存储...我需要更改我的IP,比如说每5分钟一次..然后是第7分钟我需要再次调用该服务..
我想使用任务计划程序和批处理文件来执行此操作,但我不知道如何重新启动我的调制解调器以让它断开/重新连接到我的 ADSL 服务提供商。
任何帮助将不胜感激
i need to call a web service but it records user ip as you send request.. so you can't call it twice since your ip is stored... i need to change my ip lets say every 5 minutes.. then 7th minute i need to call that service again..
i want to use task scheduler and batch files to do so, but i don't know how to restart my modem to let it disconnect/reconnect to my ADSL service provider.
any help will be much appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通常,ADSL 提供商不会在您每次重新启动调制解调器时为您提供新的 IP,而且我怀疑是否有办法强制执行此操作。通常,您的 IP 地址与 MAC 地址一起保存在 DHCP 表中一段给定的时间(取决于 ISP 设置的路由设置)。
如果您使用的是 Linux 机器,则可以使用 IP Masquerade http://tldp.org/HOWTO /IP-Masquerade-HOWTO/
您还可以使用代理服务器。
Usually the ADSL provider is not going to give you a new IP every time you restart the modem, and I doubt there is a way to force it. Usually your IP address is saved with the MAC address in the DHCP table for a given amount of time (depending on the routing settings that the ISP has setup).
If you're using a Linux box you can use IP Masquerade http://tldp.org/HOWTO/IP-Masquerade-HOWTO/
You could also use a proxy server.