Contact SalesSitemapCustomer Login

Go Back   VPSlink Forums > Operating Systems > CentOS

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-05-2012, 07:33 PM
kxx kxx is offline
Junior Member
 
Join Date: Nov 2012
Posts: 2
Default Opening ports

this is a technical question.

I'm trying to host a java application on my VPS. The Java source code is this: pastebin com/1Pm3iqdx

What it does, is that it creates a socket on a specified port allowing users to connect to that specific port through a telnet prompt. I can host it just fine on my own PC and connect as expected.

The app listens on port 10834.

Code:
[root@tobiass ~]# netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State
tcp        0      0 *:ssh                       *:*                         LISTEN
tcp        0      0 localhost:smtp              *:*                         LISTEN
tcp        0      0 tobiass.vpslink.com:ssh     0x573bec04.henqu2.dyna:6257 ESTABLISHED
tcp        0      0 tobiass.vpslink.com:ssh     0x573bec04.henqu2.dyna:6423 ESTABLISHED
tcp        0     52 tobiass.vpslink.com:ssh     0x573bec04.henqu2.dyna:boks ESTABLISHED
tcp        0      0 *:10834                     *:*                         LISTEN
tcp        0      0 *:ssh                       *:*                         LISTEN
tcp        0      0 localhost:smtp              *:*                         LISTEN
When I telnet to my VPS address at that port, the connection is refused. Are the ports closed or...?
Reply With Quote
  #2 (permalink)  
Old 11-05-2012, 09:23 PM
kxx kxx is offline
Junior Member
 
Join Date: Nov 2012
Posts: 2
Default

I had to edit iptables to allow connections on my apps port.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT. The time now is 08:17 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0