Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › [Tut]Get Local IP

[Tut]Get Local IP

Posts 1–6 of 6 · Page 1 of 1
NextGen1
NextGen1
[Tut]Get Local IP
Beginners Guide To Getting IPaddress Programatically

Note: As always, Open VB.net and follow along, if you just grab the sample, You will never learn anything.


Lets begin by creating a "New Project" I called my project "GetIP" , However you can call yours anything you like.

[IMG]http://i111.photobucke*****m/albums/n121/golmor/newproj1.jpg[/IMG]

Add one "'Label" and one "Button" to the form

Note: Text, Font , Style and placement have no relevance, Design it anyway you like

You should have a form that looks similar to this.

[IMG]http://i111.photobucke*****m/albums/n121/golmor/mpghip.jpg[/IMG]

Now you need to add the reference system.net
(you can achieve this by clicking project then add reference, in your toolbar)

Scroll down and click system.net, Finally...Click Ok
(You should see this)

[IMG]http://i111.photobucke*****m/albums/n121/golmor/sysnet.jpg[/IMG]

Tip: VS (Vb.net in this case) Hotkey -- F7 -- Enters the coding window

At this point you need to open the codeing window , You can achieve this numerous ways, but the fastest is with the hot key "F7"

Now type "Imports System.Net" above public class *Form Name*
("General" Area")

Now add this code inside the button click event (if you don't know how to do this from the code window, go back to the designer and double click the button)

No offense to the copy and pasters, but it's time you started learning, so instead of proving the code in a copy/paste friendly manner, I am adding a screenshot, If you would like to use this, your going to have to type it out...sorry leechers, it's for your own good

Note: I suggest anyone writing a tutorial adopts this method in order to truley help those who seek help, it will also weed out C&P.

Obviously if you are offering support it will be better to use the [.code] Tags, but otherwise I suggest screenshots.

[IMG]http://i111.photobucke*****m/albums/n121/golmor/code34.jpg[/IMG]

Now press F5 (debug) and test your project.

You should get something like this as a result (on button click)

[IMG]http://i111.photobucke*****m/albums/n121/golmor/form2.png[/IMG]

Hope this helps

(Part 2, Intermediate way of retrieving your "Real" IpAddress)
#1 · 16y ago
Lolland
Lolland
GJ again.

Lol what's with all your n00b tuts?
#2 · 16y ago
NextGen1
NextGen1
Quote Originally Posted by lolland View Post
GJ again.

Lol what's with all your n00b tuts?
For the newbs... Think about it, do advanced coders come to the vb section to learn?

#3 · 16y ago
Lolland
Lolland
Yeah good point.
#4 · 16y ago
treeham
treeham
DAMMIT THATS NOT YOUR REAL IP ADDRESS
#5 · 16y ago
NextGen1
NextGen1
Quote Originally Posted by treeham View Post
DAMMIT THATS NOT YOUR REAL IP ADDRESS
That is My Local IP, Difference between a local (or network) IP and your "Real IP"

I made a tut for a "Real IP" over here

http://www.mpgh.net/forum/33-visual-...t-real-ip.html
#6 · 16y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

  • Tut Getting vb and learning the basicsBy nlowner in Visual Basic Programming
    3Last post 19y ago
  • [TUT]Get Chams Working Again!By Tjrulesz in Combat Arms Hacks & Cheats
    58Last post 18y ago
  • [TUT] Get running processes and kill them ~~By Zoom in Visual Basic Programming
    2Last post 16y ago
  • TUT getting rakion _DllAdress for cell2cell hackBy KAHAK in Programming Tutorials
    0Last post 16y ago
  • [TUT] Get Harolds Bypass 3.0 Working On Vista.By lahoe91 in Combat Arms Hacks & Cheats
    138Last post 18y ago

Tags for this Thread

None