I understand that you want to have access to a server no matters if you are in a public or a local network right?
Well, first regarding to have access to server from a local network you just need to have an ip address from the same server's network and if it is the case in the same vlan. Perhaps you can get this ip address from DHCP server or you can configure it manually.
In the case you want to have access from a public network. You need to configure NAT in at least to ports on your router. One has the inside ip address and the other with the outside ip address. Besides you need to indicate with the commands "ip nat inside" and "ip nat outside" which interface will work as inside port and the outside port.
Watching your configuration. I assume that you want to connect via HTTP or well a specific port. For that reason you should use an extended control access-list which allows you to specify the protocol or the port you want to use.
I share with you a link where you can find different ways to achieve what you need. Choose the best option for you, I know you will find it very helpful.
I would also like to know how to do this. Sorry to piggyback on your question. I have a 1921 ISR and have a similar problem where if I'm on my internal network, I cannot access my internal HTTP server using the public IP address but I can using the internal IP address. However, if I'm on an external network, I CAN access my HTTP server using the public IP.
I suspect it's because if I try to access my HTTP server using the public IP address while on my internal network, there will be some sort of route loop, which gets prevented.
Is it possible to create a static route that re-directs all matches to the public IP address in question to the internal IP address of the HTTP server?
We are pleased to announce availability of Beta software for 16.6.3.
16.6.3 will be the second rebuild on the 16.6 release train targeted
towards Catalyst 9500/9400/9300/3850/3650 switching platforms. We are
looking for early feedback from customers befor...
Introduction Featured Speakers Luis Espejel is the Telecommunications
Manager of IENova, an Oil & Gas company. Currently he works with Cisco
IOS® and Cisco IOS XE platforms, and NX to some extent. He has also
worked as a Senior Engineer with the Routing P...
In this session you can learn more about Layer 3 multicast and the best
practices to identify possible threats and take security measures. It
provides an overview of basic multicast, the best security practices for
use of this technology, and recommendati...