Home › Forums › Support › Set a Port? This topic has 3 replies, 2 voices, and was last updated 10 years, 10 months ago by Anonymous. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts January 10, 2014 at 15:13 #1415 AnonymousInactive Hi, How can I set the port of the server static? (e.g. as 12345) I hope someone can help me, 91378246. January 10, 2014 at 16:06 #1416 AnonymousInactive Heya. Many thanks for your interest in our network library and welcome to our forums. Please use the following syntax: try { IPAddress ipAddress = IPAddress.Parse("127.0.0.1"); IPEndPoint endPointToUse = new IPEndPoint(ipAddress, 12345); TCPConnection.StartListening(endPointToUse, false); } catch (CommsSetupShutdownException) { Console.WriteLine("The requested port '12345' was already in use."); } Regards, Marc January 10, 2014 at 17:00 #1417 AnonymousInactive Hi, thank you for your fast answere. But now I have another question. This server worked perfectly in my home network. But how can I make it work worldwide? yours sincerely, 91378246. January 10, 2014 at 17:13 #1419 AnonymousInactive You need to allow access to your PC from the internet: http://www.nch.com.au/kb/10046.html Marc Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In