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.
The setup is simple, the only thing is to change the ip address to the ip address of the router. Here is the step by step setup:
1.Setup the DMZ feature of the router, and set the address to my laptop address inside the router, on which I will use the frontend.
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 (
firstname.lastname@example.org,email@example.com) 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 184.108.40.206. After the replacement, the link address looks like
4.Launch the kernel in the shell on the remote machine, and execute
$ParentLink = LinkConnect["firstname.lastname@example.org,email@example.com", LinkProtocol->"TCPIP"]
firstname.lastname@example.org,email@example.com part is the part we just get above. Then hit "OK", if everything works correctly, you should get something like
Then you are connected to the remote kernel.