I'm trying to understand a bit more about webRTC so:
So my question is, when connecting from localhost I'm pretty sure WebRTC peerConnection doesn't go through internet to connect to myself, will this be the same with the second scenario?
Whether WebRTC goes through internet or not depends on what you pass in ICE server list when creating a peer. If you don't pass any ICE server (STUN or TURN), then WebRTC just gathers local ICE candidates (i.e. from localhost). If you pass at least one STUN or TURN server url, then WebRTC tries to gather ICE candidates using that servers. But even though you provide non-empty ICE server list, if both peers can reach each other using local candidates (of course, if you haven't disabled gathering local ICE candidates), then its likely that WebRTC would select them as the best candidates pair, because they have lower "network cost" for sending media than the candidates gathered from outside of localhost.