rameshg

tcp ip over internet

4 posts in this topic

The client server model using tcp ip is working fine in local network. Need help to transfer data over internet.

 

Server address:

    Local $sIPAddress = "116.202.126.252"
    Local $iPort = 65432
 
    Local $m = MyTCP_Server($sIPAddress, $iPort)

 

Client address:

    Local $sIPAddress = "116.202.126.252" ; 
    Local $iPort = 65432 ; 
 
    MyTCP_Client($sIPAddress, $iPort)
 

 

How can I configure ?

Thanks

Ramesh G

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Agreed, your WAN facing router will need to be configured to do port forwarding. That will allow an external address/port to properly connect to the NAT'd device on your internal network.  You can even declare that particular ports forward to alternative ports on the internal LAN.  For example, a port forward can be setup to allow an incoming connection on external_ip:2424 to redirect to internal_ip:65432

Edited by spudw2k
1 person likes this

Share this post


Link to post
Share on other sites

Thank you guys ....now its working for me by forwarding ports

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now