There are two fundamental things you need to do:
NB: Do these in order, and test the first section by using your static IP from outside of your home.
Router
If your server connects to the internet through a router, then you need to either add your server to the DMZ (This will direct all traffic to your IP address to the server. This is dangerous!) or forward the specific ports that you need to it. To do this, you'll need to log onto the router itself and find "Port Forwarding"
DNS
You need to configure www.mydomain.com to point to your static IP. Do this by going to your registra (The place you purchased it from), and figure out how to add an "A Name Record". This record will contain your static IP.
This may take a few hours to take affect, so be patient. Test it first by going to the command prompt and pinging wwww.mydomain.com and looking to see if it's returning your static IP.