well on't know how to say it
Blitz3D Forums/Blitz3D Beginners Area/well on't know how to say it
| ||
Ok sorry about the title but this is it in full I want to know if there is a way to automaticlly find out the ip adress of a computer and write to a file on a web server then would it be able to have another computer to rad that file to get that ip adress to know were to send the infomation |
| ||
You could use the GetIpAddrTable function that's available in Iphlpapi.dll (Internet Protocol Helper API), but it will only work with Windows 98 and beyond (i.e. no Win95). See MSDN. If that's not acceptable, there are other hacks that you could try. |
| ||
The web server should be able to get the REMOTE_ADDR environment variable. a list of ways to do this using PERL here |
| ||
adn i want to do this form blitz ohh this all very confusing |
| ||
Ohh I am so very cobfused |
| ||
Ignore my comments above -- silly me! There are functions already within Blitz to get the IP address for you. (Just look in the "Networking" section of the documentation.) Here's how you get all the IP addresses of the local host (the computer that's running the Blitz program): For i% = 1 To CountHostIPs("") Print DottedIP$(HostIP(i)) Next (Usually there's only one.) ...and to write it to a file on the web server? I don't know... |