# How to connect to remote kernels inside home router?

How to use remote kernels inside a home router? My router has the demilitarized zone (DMZ) feature, which can expose my computer to the internet, and should be able to work, but I can't figure out how to setup the connection command in Mathematica to make it work.

• Try Remote Kernel Strategies by sakra. It uses SSH forwarding so you can be behind a firewall. It simplifies the task. Good luck! (Doing these things is always painful for me and I never get it right the first time.) – Szabolcs Jul 9 '14 at 3:30
• Actually, I think that package is for using a remote main kernel, and it might not help with using remote subkernels. – Szabolcs Jul 9 '14 at 3:36

2.Start the listenning at the front end by execute anything, such as "$Version", which will prompt a popup window shows something like 3.Copy the link address part (59839@192.168.0.106,59840@192.168.0.106) to some editor, and replace the ip address part by the router ip address. The router ip address can be looked up easily from googling something like "my ip address". My router's ip address is 174.64.12.123. After the replacement, the link address looks like 59839@174.64.12.123,59840@174.64.12.123. 4.Launch the kernel in the shell on the remote machine, and execute $ParentLink = LinkConnect["59839@174.64.12.123,59840@174.64.12.123", LinkProtocol->"TCPIP"]

where the 59839@174.64.12.123,59840@174.64.12.123 part is the part we just get above. Then hit "OK", if everything works correctly, you should get something like