Setting local IP Address in .NET

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • markdsweet1
    New Member
    • Oct 2008
    • 1

    Setting local IP Address in .NET

    I need to know how to set my local machines IP address on an adapter from .NET code. Is there a way to do it? I looked at the MSDN website, but I could not see a way to set it. Read it yes, many ways. Thanks in advance for your help.
  • joedeene
    Contributor
    • Jul 2008
    • 579

    #2
    Well, what do you mean adapter? Like, do you have some cellphone or something hooked up? Or, do you want to set the local ip of the computer? I don't think it's possible by sending it to the device hooked up to the adapter, if so it would be very difficult. But, using the System.Manageme nt Namespace you can set the local IP address of the computer.

    joedeene

    Comment

    • Curtis Rutland
      Recognized Expert Specialist
      • Apr 2008
      • 3264

      #3
      Here's a thread that might help.

      @Joe,
      Adapter = network adapter, as in your network connection.

      Comment

      • joedeene
        Contributor
        • Jul 2008
        • 579

        #4
        Originally posted by insertAlias
        Here's a thread that might help.

        @Joe,
        Adapter = network adapter, as in your network connection.
        ...Thanks for that, I can't think today, haha, nor anyday. I misread the OP I guess..

        joedeene

        Comment

        Working...