When I join in a room XMPP xmpp, usually the other user see my JID as myconference@conference.localhost/myname instead of myname@localhost.
Pidgin is able to recover also my real JID when I talk with some of my friends (myname@localhost).
How is it possible? What kind of request should I make to the server?
This is important for me, because when I start talking with someone, I don’t want to open two tabs, only because my client believes that my friend that I can see both in my roster and in the group roster, isn’t the same guy.
See XEP-0045, section 7.2.4. In a non-anonymous room, the server will send all participants’ jids in their presence stanzas: