Score:0

Two different IPs when accessing through SSH vs directly via terminal

mn flag

I have this app that needs to get the assigned static IP of my Ubuntu PC. The PC is behind this proxy server: 10.66.5.50.

When I open the app using SSH from another computer, the app displays the correct assigned IP. But when I open the app directly in Ubuntu, it displays this IP: 10.66.5.48. I have no idea where it gets this IP from. This IP doesn't show up when I run "ifconfig".

I'm new to Linux. Can somebody kindly tell me what is going on? How can the IP be different when accessing through SSH vs directly? And how can I get the correct IP address? Thank you!

Edit: It's a back-end app for a web app, built on .NET Core, and self-contained.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.