Jump to content

TCP does not work outside of localhost


Recommended Posts

Start by posting your code for server and client (and explain ip addresses that you use on server script, are you sure it's your network adapter?), then check what do http://www.yougetsignal.com/tools/open-ports/ display for your port and IP address and add the results on this post.

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

Ok, This is my codes :

Server:

TCPStartup()
$Socket = TCPListen("46.113.196.20", 1227)
While 1
Local $ConnectedSocket = TCPAccept($Socket)
If $ConnectedSocket >= 0 Then
     $recv = TCPRecv($ConnectedSocket, 2048)
     MsgBox(0,"Message",$recv)
     TCPCloseSocket($ConnectedSocket)
EndIf
WEnd

Client:

TCPStartup()
$ConnectedSocket = TCPConnect("46.113.196.20",1227)
TCPSend($ConnectedSocket,"Test")

Posted Image Port 1227 is closed on 46.113.196.20.

What's the problem? How to open port 1227?

@

According to this website, I have blocked every port......

Edited by MrKris7100
Link to comment
Share on other sites

did you do ipconfig in cmd to check is that your network card IP address?!

on "How to open port 1227", ask your ISP don't ask us, you're the one who told us that you're not behind any router and that your firewall is off. So reditect that question to your ISP (Internet Service Provider).

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

^^ So once again, you need to do port forwarding.

Open default gateway address in your browser and see if you can do port forwarding. If for example the page won't load then port forwarding won't be possible - obviously.

If you would now ask what's default gateway then maybe you shouldn't be doing what you are trying at all.

Edited by trancexx

♡♡♡

.

eMyvnE

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...