Need help programming a network class or module for my programs.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kiseitai2
    New Member
    • Jul 2007
    • 93

    Need help programming a network class or module for my programs.

    I'm sorry to cause trouble but I've been annoyed by this problem I'm facing. A few months ago I tried to create a server application to see if I could create one. Some time later, I started to see if I could create a simple 2d game and also set it up for internet play. Now I wanted to create a similar application to zbatttle.net because I haven't been able to fix the "Could not connect to server" error, so I decided to make it in VB.Net because the .Net framework seem more attractive and I handle better vb.

    As you can see, I haven't created the class yet. My main problem is that I don't have any experience with the system.net. For the most recent project I tried to compile but it gave me the "Object reference not set to an instance of an object" error and using the New keyword didn't solve it. Searching the Internet I found a dll based on the .net framework but it only detected the local IP address when I actually need the Internet IP address.

    So the main thing I need help on is detecting the Internet IP address for now. Then I'll see if it works with the dll I have. If it doesn't get to work I'll post it right away.
  • joedeene
    Contributor
    • Jul 2008
    • 579

    #2
    Perhaps using methods in the System.Net.Dns Class will be the key to your solution? :D Like take a look at this link to get an array of possible IP's

    joedeene

    Comment

    • kiseitai2
      New Member
      • Jul 2007
      • 93

      #3
      Thanks for the super quick reply! I'll play a litle with the code and see if I get the kind of results I want. I'll post back if I get stuck again.

      Comment

      Working...