How can I test if my computer's ip is correctly port forwarded | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How can I test if my computer's ip is correctly port forwarded

I need to test if my computer's ip is correctly port forwarded because when i do that from my router it says that i did it correctly but when i try to connect to it, it says that the ip is not online. I know that there are a big number of software that can do that but they are full of viruses and ads. It will be greater if i can do it in python because i work from different computers with different os. i'm sorry for my bad english

26th Mar 2018, 3:33 PM
Etabeta1🇮🇹
Etabeta1🇮🇹 - avatar
8 Answers
+ 1
do you have a public ip from your isp. if its behind nat it wont matter how you portforward you wont be able to connect. I think portforward.com provides service to test this or you could just portscan your address from external network. without you being outside your servers network you cant realiably test your forwardings unless you have a great router that has firmware that actually allows changing this firewall rule. ask a friend to try and connect if you cant do it with a phone or other device. depending on your service you could just write custom tcp requests with ex socket module or you could just use realible port scanning software ex. nmap
26th Mar 2018, 8:33 PM
Markus Kaleton
Markus Kaleton - avatar
+ 4
I can't help you with this but your English is not bad
26th Mar 2018, 3:36 PM
Manan
Manan - avatar
+ 3
are you sure you are using the correct ip? you need to use your external ip and also be outside of your network and specify the port you forwarded to test it
26th Mar 2018, 3:45 PM
Jeremy
Jeremy - avatar
+ 1
yes i'm sure
26th Mar 2018, 3:45 PM
Etabeta1🇮🇹
Etabeta1🇮🇹 - avatar
+ 1
if you did everything correct and it doesnt work, you didnt do everything correct :p
26th Mar 2018, 3:46 PM
Jeremy
Jeremy - avatar
+ 1
ok i'll do a new try
26th Mar 2018, 3:48 PM
Etabeta1🇮🇹
Etabeta1🇮🇹 - avatar
+ 1
assign your pc a static ip in your router so can make sure your ip's arent wrong
26th Mar 2018, 3:49 PM
Jeremy
Jeremy - avatar
+ 1
I didn't think that thanks
26th Mar 2018, 3:50 PM
Etabeta1🇮🇹
Etabeta1🇮🇹 - avatar