そのため、localhost上の私のアプリケーションは実行されています。これは私のTomcatの設定です Tomcatの設定
転送方法は次のとおりです。これはVerizonルータです。 ルーター設定
これが私のipconfig / allです。
Windows IP Configuration
   Host Name . . . . . . . . . . . . : Nomi-PC
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Local Area Connection 4:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : TAP-Windows Adapter V9
   Physical Address. . . . . . . . . : 00-FF-D6-52-BE-85
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
Ethernet adapter Local Area Connection 2:
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Marvell Yukon 88E8057 Family PCI-E Gigabi
t Ethernet Controller #2
   Physical Address. . . . . . . . . : 00-1F-BC-08-D7-17
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::803b:93a9:deea:8a3a%13(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.232(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 301998012
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1F-63-DC-5F-00-1F-BC-08-D7-18
   DNS Servers . . . . . . . . . . . : 192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter Local Area Connection:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : fios-router.home
   Description . . . . . . . . . . . : Marvell Yukon 88E8057 Family PCI-E Gigabi
t Ethernet Controller
   Physical Address. . . . . . . . . : 00-1F-BC-08-D7-18
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
Tunnel adapter isatap.{36A2D241-01E7-4C03-B078-4FD3BC13F10F}:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
Tunnel adapter isatap.{D652BE85-DB36-4885-A847-A42EFA046BDE}:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
Tunnel adapter Teredo Tunneling Pseudo-Interface:
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2001:0:5ef5:79fb:24f2:a94:93cc:a317(Prefe
rred)
   Link-local IPv6 Address . . . . . : fe80::24f2:a94:93cc:a317%14(Preferred)
   Default Gateway . . . . . . . . . : ::
   NetBIOS over Tcpip. . . . . . . . : Disabled
Tunnel adapter isatap.fios-router.home:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
私はまたIP 192.168.1.232で試してみましたスクリーンショットのものは "whatsmyip"からのものです
ご協力ありがとうございました。
                   なぜあなたがあなたのhostsファイルを使っているのか私にはわかりません - それはこれには無関係であるべきです、それはあなたが取り組んでいるコンピュータだけのためです。 「転送IP」には、192.168.1.232アドレスを使用する必要があります。また、あなたのVerizonルータのウェブインタフェースを見て、それがそのIPが何であると考えているのかを調べてください。 
                
                
                  
                    —
                    cutrightjm
                    
                  
                
              
                   私のルーターはIPアドレスを言う:108.51.92.232 
                
                
                  
                    —
                    Noman
                    
                  
                
              
                   転送されるIPは192.168アドレスである必要があります。 tomcatのホスト名をそのアドレスに設定します。また、この答えを見て、この設定を同等のファイルにコピーしてください。ただし、ポートを80に変更してください。  stackoverflow.com/a/21304208 
                
                
                  
                    —
                    cutrightjm
                    
                  
                
              
                   もう少し説明をお願いします。私はまだ同じことにこだわっています。私はコネクタを使ってTomcatを走らせることができました。私はポート80を転送するために192.168.1.232を使用しています。しかし私はまだ同じ404が見つかりません。 
                
                
                  
                    —
                    Noman