Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# socket LAN Web AsyncCTP Async , +
Can not connect to the computer from the Internet by using socket, when the computer has Internet connected not directly through a lan card. What to do? If I have a computer podklyuchayus Katori Internet connection directly everything is fine and turns with adaprami of TP-LINK does not work.
Posted 17-Jan-13 1:00am
Comments
Sergey Alexandrovich Kryukov at 17-Jan-13 7:19am
   
You are mixing English with words in some other language which I happen to understand — almost, but it makes you speech completely incomprehensible. I know it might be difficult for you, but you have to find a way to write in English. I know, automatic translation is bad, but also use some dictionaries, go slowly and carefully...
What is "LAN card"? How it's not directly? What is "C# socket?" :-)
—SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

It's hard to give a solution without knowing your exact network setup.
Most common case when connecting through a router is that your local network is behind NAT and it makes direct connection from Internet to local computer impossible.
Solution depends on your router capabilities: you would want to search for port forwarding or put your computer in DMZ zone.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

I just want to use socket to connect to a remote computer and send the message (TCP chat). What do you suggest? Port forwarding or put the computer in DMZ zone?
  Permalink  
Comments
sjelen at 17-Jan-13 11:27am
   
In that case I would use port forwarding. You'll need to forward port that your chat application uses and map it to the local network IP address of the computer you want to connect to. It's easier to setup if your computer uses static local IP, not DHCP.
 
And please use "Have a Question or Comment" button to post additional question, do not post a question as solution.
animares at 18-Jan-13 3:31am
   
No my computer use DHCP.
Analog ICQ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,656
1 Sergey Alexandrovich Kryukov 6,490
2 CPallini 5,310
3 George Jonsson 3,584
4 Gihan Liyanage 2,650


Advertise | Privacy | Mobile
Web01 | 2.8.140921.1 | Last Updated 17 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100