You don’t have to worry about your Camera ip address, because your Wowza Server will be the central server. If your server and ip camera are outside your network just use the external ip addresses or open the ports to the internal ipaddress.
Download the script from jwplayer. edit the settings to your needs and upload it to a webbrowser. for further support about Jwplayer you can go to their forum, they have plenty of examples there.
in your stream file you are using username and password. so you have setup secure streaming.
Can you tell me what is working for now?
rtsp://admin:studiom123@10.0.1.22/play1.sdp
Your example setup?
IP camera IPaddress: 10.0.1.20
Wowza Ipaddress: 10.0.1.22
webserver: ? 10.0.1.23 or an outside ip?
open the ports needed (1935, 554) in your server firewall or forward the ports to your internal wowza server.
call the stream from anywhere inside and outside your network
just use the external ipaddress from your router
or use the external ipaddress when your server is a datacenter
edit:
you didnt have the application name in your rtsp stream. it should be like this
rtsp://admin:studiom123@<external_ip_wowzaserver>/<application_name>/play1.sdp