F5F Stay Refreshed Power Users Networks External IP for GNS3 setup

External IP for GNS3 setup

External IP for GNS3 setup

S
SFcoralsnake
Member
219
07-06-2023, 04:18 AM
#1
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.
S
SFcoralsnake
07-06-2023, 04:18 AM #1

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.

E
EmmaForLife
Member
201
07-07-2023, 05:01 PM
#2
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.
E
EmmaForLife
07-07-2023, 05:01 PM #2

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.