On the PC that is the MapTool server I also run a webserver that I'd like to link to from within my macros. However, I don't have a static IP, so every 2-6 months the IP address will change.
For now I have hard-coded my server IP as a campaign property (which I dutifully update by hand every time my IP changes). Is there a way to read the server's IP and automatically update this property?
Macro function for server IP?
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
- Full Bleed
- Demigod
- Posts: 4736
- Joined: Sun Feb 25, 2007 11:53 am
- Location: FL
Re: Macro function for server IP?
It would probably be here if it existed: Wiki: getInfo()Tichrimo wrote:On the PC that is the MapTool server I also run a webserver that I'd like to link to from within my macros. However, I don't have a static IP, so every 2-6 months the IP address will change.
For now I have hard-coded my server IP as a campaign property (which I dutifully update by hand every time my IP changes). Is there a way to read the server's IP and automatically update this property?
And I don't see it.
You could put this in the suggestions forum. Since you can see this information in the File>Connection Information menu option it probably would not be that hard to add it to getInfo.
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."
Re: Macro function for server IP?
I take it you don't have a URL? If you use something like noip.com it can install a resident app to report your current ip and give you a URL. You register and manage your hosts to give yourself a subdomain (aliasmask) and a domain like redirectme.net for a url like aliasmask.redirectme.net (there's a dropdown list). Then you download the client for your server and run it. You never have to change your ip manually again.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Macro function for server IP?
Yup, that's where I looked and expected to find it. Good idea to post it to the suggestions forum.Full Bleed wrote:It would probably be here if it existed: Wiki: getInfo()Tichrimo wrote:On the PC that is the MapTool server I also run a webserver that I'd like to link to from within my macros. However, I don't have a static IP, so every 2-6 months the IP address will change.
For now I have hard-coded my server IP as a campaign property (which I dutifully update by hand every time my IP changes). Is there a way to read the server's IP and automatically update this property?
And I don't see it.
You could put this in the suggestions forum. Since you can see this information in the File>Connection Information menu option it probably would not be that hard to add it to getInfo.