NetTalk Central

Author Topic: Port numbers  (Read 3887 times)

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
Port numbers
« on: August 07, 2014, 02:38:16 PM »
Hi

I need some advice about my port number and domain name.

I have purchased a domain www.gocars.co.nz and I want that to point directly to my NT program.  The server that I am running on has IIS listening on port 80 and I have built my program with port 8092.  When I quote the IP address of the server with the 8092 port number my program works fine and I have been testing in this mode.

I now want to go into production and would like gocars.co.nz to point to the program (through some internal 'address translation (?)).

What are my options (if any) and what is the implementation:

1.  gocars.co.nz:8092
2.  <ip address>:8092
3.  gocars.co.nz
4.  Dedicate a server so that I can use port 80
5.  Other  ;D

Thanks

Keith

Clarion 10.0.0 build 12799
NetTalk 9.31
StringTheory 2.65
InsightGraphing 2.27

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Port numbers
« Reply #1 on: August 07, 2014, 10:21:36 PM »
HI Keith. Unless you have another website using port 80 on this computer I would definitely recommend removing the IIS service and using port80.
Unless you have a dedicated audience whom you can school in opening ports if your selected port is rejected by their firewall using non-standard ports for a website in the wild is definitely something I would not recommend.
You can certainly have your application and database on one server and have another just to run the application and which would then be the server that the internet URL will connect to but the same issue would still apply if IIS (or Apache) is hogging port 80 on the new server.

My opinion:  http://www.gocars.co.nz
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Poul

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: Port numbers
« Reply #2 on: August 08, 2014, 06:14:38 AM »
if you have access to your DNS you can try domain and /or sub-domain forwarding with port numbers:
eg:
        gocars.co.nz   ==>   http://yourIP:8092
or
        admin.gocars.co.nz   ==>  https://yourIP:8092/adminpage
        test.gocars.co.nz   ==>  https://yourIP:8091/Testlogin
        dev.gocars.co.nz   ==>  http://differentIP
 
You can use with or without masking - but test carefully, with masking, on occasion i have seen different behaviors.
but when it works it works well.

poul

mmelby

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • Email
Re: Port numbers
« Reply #3 on: August 08, 2014, 09:51:16 AM »
I agree with Terry. However if you are really stuck on using different ports, another option would be to redirect port 80 to your application port. This can either be done in IIS or using a webpage.

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
Re: Port numbers
« Reply #4 on: August 08, 2014, 01:28:17 PM »
Hi Terry, Michael and Poul,

Thanks for looking at this. 

Comments have clarified the position and I am sure that I will be able now to work out a solution.

Cheers

Keith
Clarion 10.0.0 build 12799
NetTalk 9.31
StringTheory 2.65
InsightGraphing 2.27