Hello

i am after a piece of code that will change my ip address every 30 seconds, i have no idea were to start so any help will be appricated thank you

Recommended Answers

All 2 Replies

Assuming your on Windows...
Wouldn't a batch file be sufficient? Something along the lines of ...

netsh interface ip set address name="Local Area Connection" static 192.168.0.100 255.255.255.0 192.168.0.1 1

If not you could "cheat" and do a ShellExec()

I'm assuming anything deeper than that you would have to work with the device itself through some deviceiocontrol but that's just off the top of my head and I could be wrong(probably wrong)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.