heyas =)
is there a simple way to get your own (internet)ip adress?
ok, runprogram "ipconfig>temp.txt" then processing the temp.txt
might do the job, but it doesnt look nice...
im sure there is a simple command in pure basic (i dont know
of yet)...
ho knows? =)
thx
muab
getting own ip adress?
Look at the network help:
Code: Select all
InitNetwork()
ExamineIPAddresses()
Debug IPString(NextIPAddress())
[:: PB Registered ::]
Win10 Intel core i5-3330 8GB RAM Nvidia GTX 1050Ti
Win10 Intel core i5-3330 8GB RAM Nvidia GTX 1050Ti
i posted a tcp/ip sample with winsock a while back, that's another solution
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Take a look here:
viewtopic.php?t=7347&highlight=adapter
It is a sample code that enumerates network adapters with their current IP address
viewtopic.php?t=7347&highlight=adapter
It is a sample code that enumerates network adapters with their current IP address
AMD 1.8 - 512mb - ATI All-In-Wonder Radeon 9000 pro - W2k Pro
BASIC programmers never die, they just return without gosub.
BASIC programmers never die, they just return without gosub.