Could someone please help me? I'm unable to find any article on this.
Is there a way of changing the FTP Site's IP Address through VB code?
Thanks in advance.
Printable View
Could someone please help me? I'm unable to find any article on this.
Is there a way of changing the FTP Site's IP Address through VB code?
Thanks in advance.
Change what site's IP address?
IP addresses are assigned by the internet provider...and whether or not it changes is also up to the ISP.
The only way would be to reconnect the computer to the internet. Or change a byte in the last octet of the MAC address and then reboot the modem/router, if it is a static IP/broadband provider. I wouldn't recommend doing this, though, the few times I have it worked, and sometimes it doesn't.
In likelihood for your situation based upon assumptions I am making from similar questions in the past, no there isn't a way to do this.Quote:
Originally Posted by jaomata
Why would you want to do this with VB? Surely it would be done only on your own site and so you would be the one with the permissions to change it via the providers interface. Otherwise you wouldnt have the permissions to make such changes no matter what language or technology you used..
I have the permission and all under my admin account. It's just that I need to do this through code because I have to change this to hundreds of PCs.
The setup of IP on all PCs are static. I'm using a template and converting everything to virtual servers. In order for me to do this, I need my template server (virtual) converted to all the settings my old (physical) server.
I found the solution to change the TCP/IP settings. My next problem is to change the IP of FTP IP Address. After this, I need to look for changing the computer name and keeping them from the domain through code.
Is this possible to be done through a code?
Yes, if you are able to do it from your admin site then you can automate the process using a VB program. How hard it will be depends on how you are administering the sites...
I'm not familiar with this kind of thing...is it like a cPanel or something that you log into through a web browser? Or...? Is there a chance you can take a screen shot (obviously, blacking out/removing any sensitive information first)?
Sorry for the reply - I was sooo busy these past few days.
I need to change the IPAddress highlighted in RED in this screenshot.
Attachment 64812
Ah. When you said you wanted to change the IP address, you didn't explain yourself very well at all. It would have been helpful if you had mentioned IIS in the first place - by assuming that we'd understand what you meant, it's taken you a long time to get the answer you want.
What you're looking for is modifying the IIS metabase programmatically. This is possible. You can use WMI or ADSI.
Read more here
http://www.microsoft.com/technet/pro....mspx?mfr=true
WOW! That seems very informative - but it's kind of hard to look for what I'm having trouble with.
Do you have a sample code I can look at to do the same thing in my screenshot above?