Is there any code i can type in order to find out the IP address of my PC?
Printable View
Is there any code i can type in order to find out the IP address of my PC?
Windows 2000 - XP as well i think!!!!
in command prompt type
IpConfig
Windows 98 / 95
in start/run type
WinIpCfg
Now Select Your Adapter
Theres a environment variable you use return in ASP.
http://www.devasp.com/samples/Server....asp?TestID=65
This a list of them all. They work like this...
Code:varname = request.servervariables("VarName")
i mean the code! not the command line syntax!
asp? hehe, wat about in VB code? for normal coding purposes, i just want to inform the user about his/her own IP address without them having to type in the command prompt...
In VB add the Microsoft Winsock Control and a label to a form and then in you form load type
label1.caption = Winsock1.localip
Does That Help???:confused: :confused: :cool:
Hi that can be done threw an api and by calling the command prompt ipconfig , ive done it before but im a newbie and cannot remember the code , Try pm'ing MidgetsBro