Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

RemoteScripter Connection Refused error

Featured Replies

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?

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.

  • Author

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

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.