开发者

How to define virtual IP programmatically?

开发者 https://www.devze.com 2022-12-31 21:11 出处:网络
I need to define Virtual IP programmatically (Perl or VB or CMD or java). I need it for temporary use, I can\'t use any actual IP address and I don\'t care if it will be accessible only from local mac

I need to define Virtual IP programmatically (Perl or VB or CMD or java). I need it for temporary use, I can't use any actual IP address and I don't care if it will be accessible only from local machine.

Any help will be appreciated.

开发者_JAVA百科

Thanks, Yan


Why not use a home-IP from the 127.0.0.0/8 block? These will all refer to your localhost.

You can there run a program to respond to incoming packets and fake conversations.

Use your hostfile to bind fake hostnames to those IP-addresses.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号