@nando_roz, you can use just IP address if myip is actually the IP address of the collector (you can see the pixel when navigating to http://xxx.xxx.xxx.xxx/i). The point here is, you do not need to add /com.snowplowanalytics.snowplow/tp2 to the URL of the collector in your tracker initialization code. The tracker will add that endpoint automatically if you are using POST method (which it is by default).
However, as Mike pointed out, you should be using proper domain for the collector (again, without /com.snowplowanalytics.snowplow/tp2) since cookie handling depends on the collector name.
The CDN you’re using to load the sp.js file is also deprecated. You should use jsDelivr directly (which the deprecated CDN redirects to). Also 2.9.0 is really out of date.