When you say 'still no relay', does that mean you successfully opened both channels, but it just doesn't relay the messages from one channel into the other?
replace #firstchannel, firstnetwork, secondchannel and secondnetwork accordingly
If you can see both channels, it does not matter how you opened both networks - just that you have them both open.
In that script, replace the text #firstchannel with the name of the channel you are relaying FROM, and replace the text #secondchannel with the name of the channel you are relaying TO. The same goes with the names of the 2 networks replacing firstnetwork and secondnetwork. The names need to be spelled correctly, though upper/lower-case doesn't matter. If you paste the following command while your cursor is in each of the 2 channels, it shows the names you need to put in those places:
//echo -a $chan $network
For a slight change to the script, currently $unsafe($chan $1-) displays the name of the original channel then the message, but doesn't show the nickname who created the message. You could change
$unsafe($chan $+(<,$nick,>) $1-)
If you're still not seeing anything happening, there could be a few problems:
1. check your spellings for all 4 strings. All it takes is for 1 of the 4 to be spelled wrong and it will either do nothing or display an error message in the status window.
2. If you pasted this relay script into another script in the remotes tab of the Alt+R editor, and that other script already has the :TEXT: event in it, the other handler could be intercepting all the messages, preventing this relay script from seeing any of them.
You keep asking about IP addresses and port numbers. Again, if you can see people chatting in both channels, it makes no difference what IP address or port was used to connect to that server, as long as you spelled all 4 strings correctly.