09-12-2019 12:11 PM
I have a laptop acting as a server. The laptop's IP address is 192.168.100.5.
To access Application A from the laptop you have to use the IP address 192.168.100.5:7004
Application B is a mobile app and its managed by the laptop, so Application B has to be 192.168.100.5 (or not?). Right now, I can only access Application B using 50.225.255.196.
I have the following NAT commands on my router:
ip nat source static tcp 192.168.100.5 80 50.225.225.196 80 extendable
ip nat source static tcp 192.168.100.5 443 50.225.225.196 443 extendable
ip nat source static 192.168.100.5 50.225.225.196
Another thing, Application B talks to Application A
We keep losing the network connection to the laptop. If I remove the NAT commands, Application A works fine. If I add the commands Application A and Application B work, but after a day or two they don't work no more.
When it no longer works it says that 192.168.100.5 is a duplicate (I can see why), when I remove Application B from the equation, the duplicate error goes away.
How can I make these two applications work with each other on the same laptop, and give Application B a public IP address?
My current configuration is a Router in a Stick.
09-12-2019 01:34 PM
Hello
Can you post a topology of this setup so it can be visualized on what you are doing?
09-13-2019 06:43 AM
Below is my router-config, I removed all irrelevant information. Attached is a quick simple topology.
version 15.6
hostname Router_Academic_Network
!
boot-start-marker
boot system flash0:c2900-universalk9-mz.SPA.156-3.M6.bin
boot-end-marker
!
!
interface GigabitEthernet0/0
description Uplink to Firewall
ip address 50.225.225.146 255.255.255.252
no ip redirects
ip nat enable
ip virtual-reassembly in max-reassemblies 1000
duplex full
speed 1000
no cdp enable
!
interface GigabitEthernet0/1
description Uplink_to_Switch_Academic_Network
no ip address
no ip redirects
ip nat enable
ip virtual-reassembly in max-reassemblies 1000
duplex full
speed 1000
!
!
interface GigabitEthernet0/1.200
description Digital_Signage
encapsulation dot1Q 200
ip address 192.168.100.1 255.255.255.0
ip nat enable
ip virtual-reassembly in
ip nat source list 10 interface GigabitEthernet0/0 overload
ip nat source list NAT interface GigabitEthernet0/0 overload
ip nat source static tcp 192.168.100.5 80 50.225.225.196 80 extendable
ip nat source static tcp 192.168.100.5 443 50.225.225.196 443 extendable
ip nat source static 192.168.100.5 50.225.225.196
ip route 0.0.0.0 0.0.0.0 50.225.225.145
ip ssh authentication-retries 5
ip ssh version 2
!
ip access-list extended NAT
permit ip 192.168.100.0 0.0.0.255 any
deny tcp any any
deny udp any any
!
!
access-list 20 permit 192.168.100.0 0.0.0.255
access-list 20 deny any log
!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide