I made a socket communication simple example ,
to achieve a simple send and receive data on the LAN when using a mobile phone wifi no problems sending and receiving ,
test today using a mobile phone traffic ,
1. First I inside the router forwarding rules inside ip to my computer set up port forwarding rules 2234
2. View ip138.com see your router's ip = 123.66.129.34
3. open the phone traffic , turn off wifi socket = new socket ("123.66.129.34", 2234) connect to the server
Results connections are not made connect failed: ECONNREFUSED (Connection refused) Why this exception , but I used the Internet to download software to connect mobile network assistant "123.66.129.34", 2234 ; this is the ability to connect , do not know where he is out of the question . Find broken, connect the server socket = new socket ("123.66.129.34", 2234) This sentence
------ Solution --------- -----------------------------------
understand Bangding , hope can be resolved as soon as possible lz
------ reference ---------------------------------------
seeking attention , external network connection is a answer is relatively small, but frequently encountered problems
------ reference ------------------ ---------------------
csdn. . finished, no one will
------ reference ------------------------------ ---------
@ zhd320 Thank
------ reference ---------------------- -----------------
I solved this problem , really surprised with my own projects outside the network is not connected, write other examples can be connected , finally put their projects by the re-import an example
, still do not know where the final addition to the problem
没有评论:
发表评论