BMSYellowPages: Automatic ip-address update for your entries in the COMMS-Screen
-
I was tired of entering the dynamic ip-addresses of my squadron-members again and again before every multiplayer-session
so I created a small program that is able to update the ip-addresses in the phonebkn.ini of FalconBMS by resolving hostnames.Every potential gamehost must have a domainname under which it can be reached so that the program can do its job.
Usually these hosts would set up an dynamic dns account at dyn.org or at a similar provider.After programstart go into settings and enter these hostnames along with the description/name of the phonebook entry (you only have to do this once):
Now every time you start BMS through this progam, the ip-addresses of every entry in the phonebkn.ini that is configured in the settings-screen will be updated.
Other phonebook entries will not be touched. A small report-screen with a list of ip-addresses that were updated will be shown while the BMS-Launcher loads:In Falcon, go to the comms-menu and choose the multiplayer-host without having to change the ip-address of the game-server or ivc-server:
Make a backup of your phonebkn.ini before first use - just in case…
This program requires .NET-Framework 4.0.
Hope this program is helpful for one or the other.
-
Very useful, thanks mate
-
Excellent job.
Thanks,
Tex-20th VFW 79 SQD -
HI All, is this possible to have this tool? could be very useful but links do not work anymore……maybe because the post is date 2012
Thanks
-
HI All, is this possible to have this tool? could be very useful but links do not work anymore……maybe because the post is date 2012
Thanks
I wouldn’t assume something this old would work with the current version of BMS. 2012 is ancient history, bro. Besides, these days, servers are not changing their IP address frequently and the standard phonebook is plenty sufficient to store any number of connections to external hosts.
Are you having issues where you are frequently required to update the IP address of your phonebook entries, causing tedious excessive labor to manage it? Because that is what this tool was designed for, and if you’re not having such issues, the standard phonebook functions should be plenty.
-
Hi SemlerPDX,
Thanks for your feedback. I always fly online with my Father that is quite old (80 years old) and i host and he has to change the IP when my IP changes. So i think this could be a way to avoid this for him.
-
+1, for those wise reasons gundam has pointed out.
Volunteers out there to do this job, anyone?
I would be tempted also to ask Oakdesign’s valuable opinion if would this task be currently possibile, hhmmm…
With many thanks in advance and best regards to all.
-
Hi!! I did it.
Now i will post
-
E Bravo allora!
Come on, mate, release the bomb
Thanks in advance and with best regards.
-
HI All!!
I look through the internet how to use batch commands to search string and modify it. There is a lot of example and i merge these. Thanks to the programmer around internet that share the “how to” with batch command…
Following below the steps and the code that i tried and after some test and changes now it works.
What i did:
- I as host have installed a dynamic dns tool in order to associate aumaticaly my public ip address to a defined URL. Example: myhost.hopto.org
- create a batch file with the code below in witch HERE_PUT_THE_URL_RESOLVED_BY_DNS = myhost.hopto.org (using the above example)
- access to my father PC via teamviewer and trasfer the batch file a put icon on his desktop
- make a bakup of original phonebook ini file
- double click on the icon that run the batch and the new phonebook has for Server and IVC the right my IP public address
I know is not so “elegant” as solution, but it works. Now him has just to double click on an icon.
@echo off
setlocal EnableDelayedExpansion
set myServer=HERE_PUT_THE_URL_RESOLVED_BY_DNS
set “phonebook=.\phonebkn.ini”for /f “tokens=1,2 delims=[]” %%a IN (‘ping -n 1 !myServer!’) DO (
if “%%b” NEQ “” set ip=%%b
)REM echo ip is %ip%
set targetIP=%ip%
set targetIVC=%ip%REM echo targetIP is %targetIP%
for /f “tokens=*” %%l in (‘type “%phonebook%”^&cd.^>“%phonebook%”’
) do for /f “tokens=1 delims== " %%a in (”%%~l"
) do if /i “%%~a”==“IPaddress” (“%phonebook%” echo(IPaddress= %targetIP%
) else (
“%phonebook%” echo(%%l
)for /f “tokens=*” %%l in (‘type “%phonebook%”^&cd.^>“%phonebook%”’
) do for /f “tokens=1 delims== " %%a in (”%%~l"
) do if /i “%%~a”==“Voicehostip” (“%phonebook%” echo(Voicehostip %targetIP%
) else (
“%phonebook%” echo(%%l
)endlocal
-
Hi,
I’m the author of this tool. Although the tool is very old, unfortunately, the use-case is still valid for me at least (and for gundam, it seems :-)).
I can provide the tool but I’m also wondering why the download disappeared, I attached the tool to the thread IIRC.
The only problem is that the phonebook.ini changed in recent BMS versions and the original tool does not write the content in a compatible format. It would require a small update.I personally use a newer tool now, that does not fetch the IP address from registered dynamic domain names. The new version is implemented as a Teamspeak plugin and reads the IP address from the connected clients.
Every time you connect to a TeamSpeak server or anyone else connects to the server you are connected to it reads and updates everyone’s IP address in the phonebook.
However, that requires some specific permission settings on the server for the user of this tool that are not always in place. And it requires the use of Teamspeak of course :-).The tool is not very polished and has still some pitfalls you need to know of, that’s why I didn’t publish it here yet. But if there is still some need out there I might just finish this tool to a point it is usable without any major problems.
Would be interesting to know, which of the two approaches (DNS lookup or TS clients) is more useful for you?Regards
gofrm -
Hi Gofrm,
thanks for your post. With DNS lookup i think i solved the issue but your approach with TS is very interesting. But during the fly for communication between pilots i mean don’t y use IVC ? I suppose you are using TS isn’t it?
-
We have our Pilots-Bar :drink: and Briefing Rooms in TeamSpeak. And we share our TEs with the TS File Browser. Inflight communication is IVC of course.
TBH, the TS client approach only makes sense if you have multiple potential hosts in your squadron regularly. If you are using only one server/host all the time it is a little bit like “cracking a nut with a sledgehammer”.
-
O great. It could be interesting the Tool for sure. But is not so urgent i will wait because i would like to try the use of TS in this way.
Many thanks Gofrm!
-
Hi SemlerPDX,
Thanks for your feedback. I always fly online with my Father that is quite old (80 years old) and i host and he has to change the IP when my IP changes. So i think this could be a way to avoid this for him.
Since it’s just for one (trusted) person (who trusts you), this could be a lot easier… but I suppose any method would do. For example, this could be accomplished simply by transferring an updated phonebook file with your latest IP address directly into his Falcon BMS programs folder where it belongs using something simple like FTP. Get Filezilla and setup FTP on Father’s computer, and whenever your IP has changed, just open Filezilla, and transfer the updated phonebook file with your new IP, overwriting the one already there.
Best wishes and good luck whatever route you go down!
-
Yes thanks this is other valid solution!
Ciao
-
I also remember this tool…
http://www.09thwtac.org/index.php?app=downloads&showfile=76
Not sure it works with latest version of BMS though…
-
Of course.
But good catch anyway, so thanks a lot.
With best regards.
-
Thanks Max!