General networking question (sockets)

scarr

Member
Licensed User
Longtime User
Hi all,

if I have a device at home and it contacts a pre-defined IP (another external PC) using a socket connection, will the external PC be able to respond and always get past router / firewall? (as long as FW is not specifically blocking it)

I want to make sure my home device can talk to an external PC and the external PC can talk back without any configuration issues.

Thanks

Steve
 

scarr

Member
Licensed User
Longtime User
Thanks for the reply

The external PC can be anywhere so different LAN, there will be a router between the two devices, if fact there will be 2 routers one at either end.

I will have access to my router but not the one at the other end.

I thought that because the device in the remote location initiated the socket connection and I allowed the connection to my PC via my router, that I could communicate without any issues?

Steve
 
Upvote 0

thedesolatesoul

Expert
Licensed User
Longtime User
I thought that because the device in the remote location initiated the socket connection and I allowed the connection to my PC via my router, that I could communicate without any issues?
I believe so too.
You must configure your router to port forward to the specific device IP. The remote PC will use your external IP + this port your defined in your router.
 
Upvote 0

giga

Well-Known Member
Licensed User
Longtime User
The external PC can be anywhere so different LAN, there will be a router between the two devices, if fact there will be 2 routers one at either end.

I will have access to my router but not the one at the other end.

I thought that because the device in the remote location initiated the socket connection and I allowed the connection to my PC via my router, that I could communicate without any issues?

Steve

There are several things to watch out for:
1. If the device is another PC that is connecting to you. Communication should be allowed on the desired port inbound/outbound. (i.e NO Firewall blocking the communication port. like Norton360, ZoneAlarm etc.)

2. Your PC should allow the connection through port forwarding and again (i.e NO Firewall blocking the communication port. like Norton360, ZoneAlarm etc.)

3. If possible make sure to have a "Static IP Address" on your side or you will be resetting the client connection continuously.
GOOD LUCK.
 
Upvote 0
Top