Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4653 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I am trying to see if I can check first whether a user has logged on to the client LAN where the Server sits or is at home logging in remotely so wrote this little function

Use as you will, or make it better...






// TestLAN ( IP )

// 12/03/18 JR

// v1.0

// checks if you are  on the LAN  where FM server is running

// used to see if a user can log on locally or is remote to limit layouts via WAN



skt = new Socket()

sktaddr = new InetSocketAddress(IP, 16000)

try{

skt.connect(sktaddr, 1)

} catch (e) {

return 'ERROR not on this LAN'

//return false

}

return 'on this LAN'

//return true





This topic is 4653 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.