0

What I want to do is use one PC to test an application on another on the same 19.2.168.X.X

I would like to make it seem like SOAP requests are coming from a variety of different PCs, just to make the applciations log file easier to read and I have been told that virtual IP Addresses are the way to go. So, how do I defien a range and then use them one by one in VB? (I guss that this is effectively IP header spooging?)

H H
  • 263,252
  • 30
  • 330
  • 514
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551

2 Answers2

1

Not exactly sure what you want to do but I'd suggest first looking at the WMI class Win32_NetworkAdapterConfiguration to see if you can do what you want with it.

If that class does not support it you might have to use INetCfg instead, where I think you can change pretty much any network settings, but it's a bit more difficult to use. Here's a codeproject article for using INetCfg from C# which might at least show you how to get started.

Hans Olsson
  • 54,199
  • 15
  • 94
  • 116
1

If you just want to create a random IP address, generate 4 random numbers from 0 to 255 and glue some dots between them.

zwippie
  • 15,050
  • 3
  • 39
  • 54