Netcode Question
Displaying 1-4 of 4 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Interference22

Doing a spot of dabbling. Is there a function in V3 for returning your IP address so you can tell everyone what it is so they can join your server? If not, can we put a function in? GetIP()?

Posted on 2008-05-27 18:10:37

mcgrue

Well, I'm just talking out of my ass here potentially, but it might be hard getting your WAN IP address if you're on a LAN.

You could always sub a call out to www.ipbeer.com and scrape your IP out of there! :D

...

Posted on 2008-05-28 03:01:27

Interference22

System Shock 2 seemed to do it without much hassle.

The only problem with a method like ipbeer.com is it might not always BE there. If, five years down the line, I fancy some multiplayer and ipbeer's server has long since curled up and died then my IP address functionality won't work.

How would I *get* the IP data from the website to something usable, anyhow?

Posted on 2008-05-28 09:12:29

zonker6666

Here's a bit of a messy solution ... still it is a solution so here goes:


use a batch file to start the game with the following commands ...

ipconfig >> ipaddress.dat
verge.exe

save it as rungame.bat

that will create the file ipaddress.dat
containing the output from ipconfig
and then run verge.exe

there using some simple vc file reading
and text parsing you can retreive the
machine's current ip address.




hope it helps

Posted on 2008-06-01 09:56:55


Displaying 1-4 of 4 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.