Unix Socket C: Connecting from another network -



Unix Socket C: Connecting from another network -

i'm starting larn how configure unix server/client basilar application in c tcp socket, thing is, connect client server using port i've take in server, , (local?) address 192.168.1.x. don't know it, presume 192 local interface address , connection can achieved in same network, i've tried 2 pcs still in same network. connection network? it's complicated thing? suppose passing network's provider ip client won't job

usually in such case open router configuration web page in browser , in section "port forwarding/triggering" come in entry redirecting connections outside lan port on given machine on lan, e.g:

# service name start port end port server ip address 1 myserveronport9875 9875 9875 192.168.1.7

given external ip 89.75.140.30 can connect anywhere

telnet 89.75.140.30 9875

to reach port 9875 on local machine 192.168.1.7 assuming server listening on 0.0.0.0 ipv4 , 0::0 ipv6.

c sockets unix tcp

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -