rejetto forum
May 25, 2012, 11:31:15 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Default IP  (Read 1046 times)
0 Members and 2 Guests are viewing this topic.
jack_2000
Experienced poster
***
Offline Offline

Bulgaria Bulgaria

Posts: 63



View Profile WWW
« on: January 18, 2010, 06:28:50 AM »

I'm not sure weather this should go here or in suggestions but here it goes:

When i start hfs( i have it on auto start) It chooses my hamachi vnc ip:  5.99.172.72
It is indeed a valid ip within the routing of hamachi if i were in a virtual network with some one they could connect through it.

However i'd like it to choose my external ip address, it is sadly dynamic but real and unique to me. So i can't set it with custom ip and i always have to use the find external ip address.

Is it possible for there to be an option to always find external ip address upon start of hfs?
And if also possible to always do a self test after that?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #1 on: January 18, 2010, 04:18:36 PM »

menu > start/exit > find external address on startup

are you sure you still need the self-test now?
Logged
jack_2000
Experienced poster
***
Offline Offline

Bulgaria Bulgaria

Posts: 63



View Profile WWW
« Reply #2 on: January 18, 2010, 05:07:13 PM »

Hm thanks i didn't notice that option, a self test on start could be usefull, like the way it tells you it can't open the port if some other app is using it, it could be a toggle like this function.
If it's not too hard to implement.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #3 on: January 19, 2010, 08:25:50 AM »

to put an option in the menu, it should be widely used.
i don't think such feature would be widely used.
what i can do is to let make an event script (ALT+F6) like this work for the next release

[server start]
{.self test.}



interested?
Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #4 on: January 19, 2010, 09:09:59 AM »

 Huh?
Quote
[server start]
{.self test.}

 Tongue
[server start]
{.server|sleep=true.}
{.server|ip={.get|external ip.}|port=xx.}
{.server|sleep=false.}
...continue

Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #5 on: January 19, 2010, 09:17:55 AM »

it's not meant to reprogram the self-test.
just to invoke it.
Logged
rejetto forum
« Reply #5 on: January 19, 2010, 09:17:55 AM »

Do you like this software? Consider even $2
 Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #6 on: January 20, 2010, 05:23:27 PM »

tested and working, i don't know if someone is interressing to use it ??

Quote
   if name = 'get' then
      try
        if p = 'can recur' then trueIf(mainFrm.recursiveListingChk.Checked)
        else if p = 'can upload' then trueIf(accountAllowed(FA_UPLOAD, md.cd.conn, md.folder))
        else if p = 'can delete' then trueIf(accountAllowed(FA_DELETE, md.cd.conn, md.folder))
        else if p = 'can archive' then canArchive(md.folder)
        else if p = 'can archive item' then canArchive(md.f)
        else if p = 'url' then getUri()
        else if p = 'external address' then
           begin if not getExternalAddress(result) then result:='' end

        else if p = 'stop spiders' then trueIf(mainFrm.stopSpidersChk.checked)
        else if p = 'is new' then trueIf(md.f.isNew())
        else if p = 'can access' then trueIf(md.f.accessFor(md.cd.conn))
        else if p = 'agent' then result:=md.cd.agent
        else if p = 'accounts' then
          result:=join(';', getAccountList(
            stringExists(par(1),['','users']),
            stringExists(par(1),['','groups'])
          ))
        ;
      except unsatisfied() end;


macro
{.get|external address.} can return the current internet address if is valid else nothing.
« Last Edit: January 21, 2010, 03:06:46 PM by Mars » Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #7 on: February 08, 2010, 12:45:00 PM »

Quote
macro
{.get|external address.} can return the current internet address if is valid else nothing.

using the macro inside the template take a lot of time.

to reduce it you can do this

events

[+start]
{.set|#external-address|{.get|external address.}.}

[every 10 minutes]
{.set|#external-address|{.get|external address.}.}



then you insert this macro in your template

{.^#external-address.}

thanks to silentpliz to his report of this inconvenient. Wink


Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #8 on: February 08, 2010, 07:03:11 PM »

mine has not this problem, but it's not updated over time. maybe it's not good. Undecided

begin
if externalIP = '' then getExternalAddress(externalIP);
result:=externalIP;
end
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 21, 2012, 12:26:31 PM
anything