How to access a Java servlet running on my PC from the outside?

I used Netbeans6.7 to write a servlet, when it starts, it opens a browser window with this address: http: // localhost: 8080 / My_App / Test_Servlet , I replaced "localhost" with my IP address, now it looks like this: http : // 192. ??? .1. ??: 8080 / My_App / Test_Servlet , but I tried to access it from another computer outside my home, it doesn’t read anything, I wonder if I need to change the Windows Fire Wall setting, to allow external traffic, this is the Paypal IPN application, so I call Paypal, they said that they can’t access: http://192.???.1.??:8080/My_App/Test_Servlet

What should I do to allow traffic from "paypal.com" to access "My_App / Test_Servlet"?


Partial success! After I read the articles, configured a static IP address, forwaring port, I can send one message from the IPN page of the Paypal test, when I tried to send a second one that could not pass, so I stopped running my servlet, send another message ONE, the message failed again on the second, why? Franc

+3
source share
3 answers

I could not decide whether to vote on serverfault.com or superuser.com, so I answer here:

IP-, , (, 192.168.x.x - ), . , ( ).

:

  • , ( IP- PayPal, )
  • IP- - dynamic DNS
  • PayPal IP- - ( ) DNS-,
  • ( , , , )
  • , Windows, , .

. , . , , , , ( ), - , .

+5

. , IP- . , IP-.

( http://portforward.com/help/portforwarding.htm):

1.) IP-. IP- - , . IP- " IP-".

2.) IP- . , ip- ip-.

3.) .

, , - . . .

+1

You need to configure the router on the port forwarding port 8080 on your PC and use the external IP address of the router in the URL that you pass to Paypal.

See portfward.com .

0
source

Source: https://habr.com/ru/post/1739002/


All Articles