local host capturing problem

I am using port connection to interface two software. I used Wireshark to capture the port that I am using. However, despite the fact that the socket code is running the Wireshark does not show the connection.
Now my question is:
Can Wireshark capture localhost, for example, port 8000 with the IP address of 172.19.171.83 or not?
If yes, how can you capture it since Wireshark just has to filter 1) Bluetooth, and 2) WiFi and the port that I am using is in none of these groups.