External IP for GNS3 setup
External IP for GNS3 setup
I'm working with a tool named gns3 to design networks. You want to see the public IPs of devices inside your internal network, similar to how a computer behind a router sees the outside world. This is possible because you're using NAT. You're asking if it's feasible to display external IPs from PHP so you can set up a web server in one of your virtual networks within gns3 for testing purposes. Since your networks aren't connected to the internet, this should be manageable.
It would not relate to GNS3; you'd need to build solutions like whatsmyip.com. In GNS3 a web server behaves just like what it would in real life—establishing a connection and serving content while displaying the external IP you query. You might want something similar to https://www.virendrachandak.com/techtalk...-in-php-2/, where the server fetches the client's IP address correctly in GNS3.