Running OpenRefine on WSL

106 views
Skip to first unread message

Kangbok Lee

unread,
Jan 31, 2022, 8:34:03 PM1/31/22
to OpenRefine
Hi,

I'm trying to run OpenRefine Linux version on my Windows machine inside WSL2.

But I have this error of connection refused when I try to open the web app on 127.0.0.1:3333 which is the default address.

Is there anyone who has successfully run this app on WSL environment?

Thanks.

Thad Guidry

unread,
Jan 31, 2022, 9:03:50 PM1/31/22
to openr...@googlegroups.com
Yes, you'll need to do a few things (and check a few things like your real IP address of your host, etc.) since inside WSL2 you are dealing with a virtual NIC and virtual router thanks to Hyper-V.
You can search around for stuff like "expose application port in WSL2 for Linux app", or just ask Microsoft MVP's that float around in their forums.
Let me know if you get stuck.



--
You received this message because you are subscribed to the Google Groups "OpenRefine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrefine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openrefine/1ed720d6-dbd5-458a-843a-58e482481a3en%40googlegroups.com.

Kangbok Lee

unread,
Jan 31, 2022, 10:18:59 PM1/31/22
to OpenRefine
Hi Thad, thanks for the reply. I've tried that method in the docs and still does not work with the same error : connection refused.

What is weird is that for other networking apps, I can freely access them. I can run react web app, jupyter notebook, or other java based web apps like spring boot on wsl side and can connect to it from windows side using localhost. According to the Microsoft docs, it is common to do in this way if I have windows build greater than 18945, and my build is 19043. Only for this openrefine, I have this error issue.

Kangbok Lee

unread,
Jan 31, 2022, 10:28:17 PM1/31/22
to OpenRefine
Oh actually I found the way to work around this. I binded the ip address to run this app to 0.0.0.0 not 127.0.0.1 using -i flag.

./refine -i 0.0.0.0

and finally I could access to it using localhost

localhost:3333

Still don't know why it worked, but share this for people who might have same problem with me.

Thad Guidry

unread,
Jan 31, 2022, 11:27:55 PM1/31/22
to openr...@googlegroups.com
Yeap, correctly binding the IP or Port that you want or need is all that is really needed.

Glad you got it working!

Rolf Blijleven

unread,
Apr 22, 2022, 10:15:03 AM4/22/22
to OpenRefine
Hi Kangbok Lee,

I just want to say this information helped me out. THANK YOU! 

Rolf

Op dinsdag 1 februari 2022 om 04:28:17 UTC+1 schreef Kangbok Lee:

Kangbok Lee

unread,
May 11, 2022, 5:55:15 AM5/11/22
to OpenRefine
Hi Rolf,

It's good to know that my information helped you out!

Best wish,
KB

Reply all
Reply to author
Forward
0 new messages