Jump to content
Sign in to follow this  
NextCode

Help TCPListen

Recommended Posts

NextCode

TCPStartup()

Global $Server

Global $sIPAddress = TCPNameToIP('some.no-ip.info')

Global $nPort = 80

$Server = TCPListen($sIPAddress,$nPort)

IF @error Then

MsgBox('','','Error')

Exit

EndIf

Hi Dudes , a litle question , hope they can help me :

Why i Get error on try to connect an external IP using No-Ip , and if I put No-IP to localhost , yes its work good

... What Happening ? thanks for all and sorry , regards

Share this post


Link to post
Share on other sites
NextCode

Thanks for your quick reply

No , No-Ip its good and everything ok on router , but give me error , if i use TCPConnect its work good and SynSent ...

Share this post


Link to post
Share on other sites
Jos

No it isn't ... The Ip address is not owned by your PC!

The Ip address is owned by your router at best and you NAT it to the internal IP address of your PC running the program.

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
NextCode

if I understand , when i use my own @IPAddress1 on No IP DUC its work good , but how can I do it work for listening external IP with SomeNoIp.com?

sorry for my Bad English and thanks

Share this post


Link to post
Share on other sites
Jos

This SomeNoIp is simply a Dynamic DNS for the external (Internet) ipAddress of your Router.

Simply NAT port 80 from your Router to the internal IP address of your computer and run your program listening to its own IP address. Not LOCALHOST!

After that, people should be able to connect to your SomeNoIp DNS name which then connects to your router which then forwards to your PC...

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
NextCode

Humm ok , my Bad , will try this way , thanks Jos

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
Sign in to follow this  

×