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

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

Recommended Posts

Posted

I have successfully configured remotescripter to call a script from IWP when the web browser is running on the same computer as the FM server. I then changed the IP address to my ISP IP address in the calling script, and I get a message of "Connection Refused". The router is open on the port I am calling (tested from outside), and the plugin is responding, but with the above error.

I am running Mac Server 10.6.8, and FileMaker 12 advanced (fully patched). The 360works_webpublishing log shows the following:

Sep 9, 2012 10:04:06 AM com.prosc.fmkit.PluginBridge$3 run

CONFIG: === Executing plugin function RemoteScripterTrigger on thread Thread-124 ===

Sep 9, 2012 10:04:06 AM com.prosc.io.IOUtils getUrlContents

INFO: Reading URL contents of http://75.146.1xx.xxx:49500?param postArgs size = 0

Sep 9, 2012 10:04:06 AM com.prosc.fmkit.Plugin setLastError

SEVERE: PluginFunction PluginFunction{name='RemoteScripterTrigger', functionID=21146, minArgs=2, maxArgs=4} got an error with converted args [75.146.1xx.xxx, 49500, param, null]

java.net.ConnectException: Connection refused

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)

at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)

at java.net.Socket.connect(Socket.java:529)

at java.net.Socket.connect(Socket.java:478)

at sun.net.NetworkClient.doConnect(NetworkClient.java:163)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)

at sun.net.www.http.HttpClient.<init>(HttpClient.java:227)

at sun.net.www.http.HttpClient.New(HttpClient.java:300)

at sun.net.www.http.HttpClient.New(HttpClient.java:317)

at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)

at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)

at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)

at com.prosc.io.IOUtils.urlConnectionAsString(IOUtils.java:153)

at com.prosc.io.IOUtils.getUrlContents(IOUtils.java:192)

at com.prosc.remotescripter.RemoteScripter.RemoteScripterTrigger(RemoteScripter.java:222)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.prosc.fmkit.StaticFunction.invoke(StaticFunction.java:231)

at com.prosc.fmkit.Plugin.invokeFunction(Plugin.java:333)

at com.prosc.fmkit.RegisterablePlugin.invokeFunction(RegisterablePlugin.java:77)

at com.prosc.fmkit.Plugin.invokeFunctionNoErrors(Plugin.java:314)

at com.prosc.fmkit.PluginBridge$3.run(PluginBridge.java:1055)

at com.prosc.fmkit.PluginBridge.runTask(PluginBridge.java:1264)

at com.prosc.fmkit.PluginBridge.doFunction(PluginBridge.java:1069)

Since the plugin is receiving the command, I have ruled out firewall issues. And, since the same code works when calling "localhost" when called from a web browser on the server, it seems the rest of the code is correct.

Anybody have any ideas?

Posted

Hello,

When you say you "then changed the IP address to my ISP IP address in the calling script, and I get a message of "Connection Refused"," which function are you making this change to? The RemoteScripterTrigger function should point to the IP and port of the machine running the FileMaker Pro "robot" machine. This should not change regardless of where the browser is located that is calling the IWP trigger.

The data flow goes from browser to IWP (FileMaker Web Publishing Engine) and then to the "robot" FM Pro machine. The machine running FM Pro should be accessible from the machine with the WPE installed. This can be tested by telnetting from the machine with IWP to the machine and port of the robot. If the connection can be made via telnet, the Web Publishing Engine should be able to use the same channel to communicate with (and run the script on) the "robot.

If you are still having difficulty or this doesn't make sense please contact me directly and I'm more than happy to try and help get it resolved.

Posted

Hi Brent-

Thanks for your reply - it works great now with the robot running on the server, which is the way I needed it. FYI, I had to remove the port forwarding on the firewall to get it to work again, as that was somehow messing up the whole process.

Don

This topic is 4455 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.