IP adress

Blitz3D Forums/Blitz3D Beginners Area/IP adress

Prym(Posted 2014) [#1]
How to find my own computer IP adress ?
I can't find any command to reach this .
Thank you


dynaman(Posted 2014) [#2]
Depends on what you need it for. On windows you can open up a command prompt and type in ipconfig. That will show you your internal IP address (on your local network) along with other information. To get your external one you can try www.whatismyip.com (I think that is the name).

To figure it out from Blitz3d proper? I don't know that.

If you are just trying to loop a command back to your PC for testing then you can use 127.0.0.1 which is the loopback address (it always points to "itself").


Prym(Posted 2014) [#3]
Thank you for your answer, dynaman .
I think it's better to ask the player for the server IPadress (first player) , in my game . It should be more simple .
Thanks for collateral info : "windows : command prompt and type in ipconfig."

Goods and works in blitzbasic forums .


Rick Nasher(Posted 2014) [#4]
From CMD: ipconfig.exe /all

There is a better way. Check out the help on "HostIP(1)" it will give you an example+description.

I once used this like 10 years ago to send an dynamic IP of a client PC to my own.
I think there used to be an interesting piece of blitz code called JippyMail or something using this stuff(couldn't find it though).