Jump to content

Help TCPListen


Recommended Posts

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

Link to comment
Share on other sites

  • Developers

So you are trying to set the IP address you want to listen on to an address your Computer is not aware of?

Jos

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

Link to comment
Share on other sites

  • Developers

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 etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

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 etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...