Topic on Extension talk:VisualEditor

Tormentium (talkcontribs)

Hi,

Alright, i just wanted to know, is there a way to change the port that parsoid uses? My host supports node.js apps but it has restrictions on what ports are open and the ports used by parsoid (8000,8142) are blocked and because they cannot unblock them (for security reasons) i am unable to complete the parsoid installation and have it be used with my mediawiki installation.

Any help is GREATLY appreciated.

Thank you!

Whatamidoing (WMF) (talkcontribs)

Hi Tormentium,

I think you need to talk to your network administrator about exactly what those "security reasons" are. https://isc.sans.edu/port.html?port=8142 doesn't give me any obvious reasons to be concerned. AIUI, the most typical approach that would result in both of those ports being blocked is a blanket blacklist of all ports except those few that the network administrator has been told are needed. (This is particularly popular when the IT staff has limited resources.) If that's the case, then you should be able to get these two added to the whitelist by explaining why you need them open.

That said, the software is open source, so theoretically you could change the numbers to whatever you wanted.

41.222.180.180 (talkcontribs)

Hi

I also want to know the same thing. How can I change the port?

Because my server has 8000 and 8142 ports closed, so I have to use different port.

Maybe I can use,,,,

【web】

・http(80)

・https(443)

【FTP】

・ftp(21)

・ftp over ssl(21)

・ftp-data

【SSH】

・SSH(10022)

【mail】

・smtp (25、587)

・smtp over ssl(465)

・pop(110)

・pop over ssl(995)

・imap(143)

・imap over ssl(993)

Is it available on these ports?

Please help me.....................

MarcoFerra1979 (talkcontribs)

@Tormentium @Whatamidoing (WMF)

this is my experience regarding the port for Parsoid.:

I had to say that I am not expert in JSON nor parsoid, but I changed the port here:

FIle: \parsoid\lib\api\ParsoidService.js (folder where Parsoid is installed)

LINE: || parsoidConfig.serverPort || process.env.PORT || 8142;

My value was 8000 (I followed developer setup) and I changed to 8142 > worked

I changed to 8150 > worked

once you run the server with command node /bin/server.js from windows cmd, you should see the port:

read on: <port you wrote>

{"name":"lib/index.js","hostname":"<the name of your web host, apache>","pid":14548,"level":30,"levelPath":"info","msg":"ready on :8150","time":"2020-04-11T14:03:03.304Z","v":0}

I did not widely test, but only with curl and opening with browser

both success.

I hope this help

Reply to "Change Parsoid port"