#1 2013-07-07 13:52:44

dimitrisp
ROCK & ROLL!!!!!!!
From: /dev/null
Registered: 2013-07-06
Posts: 65

External IP and trouble

Hello LowEndSpiriters wink

I got my Mini VPS yesterday, and I'm very happy with it. Honestly, I still can't believe how good it is! I have another VPS on a different provider, and it is not working so good, but it is mainly for backup in case some of my other VPSes go down.

First things first:
- My IP is 192.168.0.33, so I have the porst 3301-3320.
- The minivps is on the NL node.
- I intend to use this VPS to host a few shoutcast slots for my webradio.
- For the shake of convenience, lets assume that the public IP is 1.1.1.1, and I'm using port 3302+3303 for shoutcast (since inceptionhosting doesn't want to make the IPs publicly available, I'll be using a fake IP to explain my problem)

So, I downloaded sc_serv 1.9.8 (I hate shoutcast 2, and I'll switch to icecast if they stop supporting 1.9.8). I configured it to my liking and started it. All goes well, or so I thought.
The config & the source tell the server to be "public", meaning it will be regisered on the shoutcast public directory.But shoucast gives me this error on the log every 5 minutes:

<07/07/[email protected]:34:01> [yp_add] yp.shoutcast.com gave extended error (Cannot see your station/computer (URL: http://1.1.1.2:3302) from the Internet, disable Internet Sharing/NAT/firewall/ISP cache - see http://wiki.winamp.com/wiki/SHOUTcast_YP_Nak_Errors [480])

At first, I didn't notice that shoutcast sees a different IP (1.1.1.2) than my public (1.1.1.1). I know it's a small problem, but I don't like doing a quick log analysis and seeing this error message every 5 minutes. I also know I could make it private, but I would rather not.

Naturally, I tried to edit sc_serv.conf and change DestIP from ANY to my public IP (1.1.1.1) so it will report the correct IP to shoucast yp, but I'm greeted with these errors:

<07/07/[email protected]:31:25> [main] opening source socket
<07/07/[email protected]:31:25> [main] source thread starting
<07/07/[email protected]:31:25> [main] opening client socket
<07/07/[email protected]:31:25> [main] error opening client socket! FATAL ERROR! Some other process is using this port!

But then I thought: "Hey, the VPS is behind NAT. It won't work that way. Maybe there is something else behind all this trouble" and I set the DestIP of sc_serv.conf to 192.168.0.33. The server started successfuly, and I can tune in. Hurray!
Oh, wait...

<07/07/[email protected]:34:01> [yp_add] yp.shoutcast.com gave extended error (Cannot see your station/computer (URL: http://1.1.1.2:3302) from the Internet, disable Internet Sharing/NAT/firewall/ISP cache - see http://wiki.winamp.com/wiki/SHOUTcast_YP_Nak_Errors [480])

So I installed lynx and went to one of those "See my ip" websites, to see what IP it reports, and bang... Your IP is 1.1.1.2 (instead of 1.1.1.1)

Is the server configured to report a different public IP on purpose, or is this an error?
Is there anything I can do to make shoutcast see that my public IP is 1.1.1.1 and not 1.1.1.2?

Thank you,
Dimitris


Love metal? http://www.distortionradio.gr/ | Powered by LowEndSpirit Hardware (at 50%)
GamePost.eu - New Gaming Community, with NMRiH & TF2 Servers (more to come soon)
If my posts have helped you in any way, send me some bitcoins: 1M5Vwki6qgwZKw3Q8wBQYC5cCy58UmGnM big_smile

Offline

#2 2013-07-07 14:51:46

Spittie3
Trusted Member
Registered: 2013-06-30
Posts: 62

Re: External IP and trouble

dimitrisp wrote:

Is the server configured to report a different public IP on purpose, or is this an error?
Is there anything I can do to make shoutcast see that my public IP is 1.1.1.1 and not 1.1.1.2?

Yes, it's on purpose. See this reply, he's talking about UK but it's the same for NL.

Can't help with your issue, as I never used shoutcast in my life. Sorry hmm

Offline

#3 2013-07-07 15:05:29

dimitrisp
ROCK & ROLL!!!!!!!
From: /dev/null
Registered: 2013-07-06
Posts: 65

Re: External IP and trouble

Haha, I was looking for info over the forum, but for some reason I chose to skip this (and a few other) threads smile
Well, I guess I'll just make it private, unless someone can provide some workaround.

Thank you for pointing it out Spittie3!


Love metal? http://www.distortionradio.gr/ | Powered by LowEndSpirit Hardware (at 50%)
GamePost.eu - New Gaming Community, with NMRiH & TF2 Servers (more to come soon)
If my posts have helped you in any way, send me some bitcoins: 1M5Vwki6qgwZKw3Q8wBQYC5cCy58UmGnM big_smile

Offline

#4 2013-07-07 15:22:11

AnthonySmith
Low End Boss
From: ~/
Registered: 2013-02-13
Posts: 3,943
Website

Re: External IP and trouble

@dimitrisp the different IP's are by design as it is not meant for IPv4 as a primary.

I wonder if it would work better via haproxy, i.e. you point an A record to the IP ending on .24 and tell me what that is, then set your shoutcast server to listen on port 80 instead and register it publicly with the A record rather than the IP.

Just an idea.

Ant.


https://upto32.com retro gaming and nostalgia forum that does not take itself to seriously smile

Offline

#5 2013-07-07 15:56:38

dimitrisp
ROCK & ROLL!!!!!!!
From: /dev/null
Registered: 2013-07-06
Posts: 65

Re: External IP and trouble

Hmmm, I am going on a limb here, but I guess it won't work, because shoutcast probably uses the IP instead of the hostname. But we've got nothing to lose just by trying! smile
I've set an A record, and a shoutcast server is waiting for a source to connect.
Would you like me to post the hostname here, or send it by some other means?

Thanks for taking your time with this,
Dimitris


Love metal? http://www.distortionradio.gr/ | Powered by LowEndSpirit Hardware (at 50%)
GamePost.eu - New Gaming Community, with NMRiH & TF2 Servers (more to come soon)
If my posts have helped you in any way, send me some bitcoins: 1M5Vwki6qgwZKw3Q8wBQYC5cCy58UmGnM big_smile

Offline

#6 2013-07-07 16:46:11

mikho
Low End Mod
From: Hell and gore == Sweden
Registered: 2013-03-02
Posts: 1,747
Website

Re: External IP and trouble

dimitrisp wrote:

Hmmm, I am going on a limb here, but I guess it won't work, because shoutcast probably uses the IP instead of the hostname. But we've got nothing to lose just by trying! smile
I've set an A record, and a shoutcast server is waiting for a source to connect.
Would you like me to post the hostname here, or send it by some other means?

Thanks for taking your time with this,
Dimitris

Send a ticket, keeping track of what domains are connected to which user.

Offline

#7 2013-07-07 17:53:04

dimitrisp
ROCK & ROLL!!!!!!!
From: /dev/null
Registered: 2013-07-06
Posts: 65

Re: External IP and trouble

Did it. And now, we wait smile

Thanks mikho,
Dimitris


Love metal? http://www.distortionradio.gr/ | Powered by LowEndSpirit Hardware (at 50%)
GamePost.eu - New Gaming Community, with NMRiH & TF2 Servers (more to come soon)
If my posts have helped you in any way, send me some bitcoins: 1M5Vwki6qgwZKw3Q8wBQYC5cCy58UmGnM big_smile

Offline

#8 2013-07-07 20:03:59

AnthonySmith
Low End Boss
From: ~/
Registered: 2013-02-13
Posts: 3,943
Website

Re: External IP and trouble

Also did it smile


https://upto32.com retro gaming and nostalgia forum that does not take itself to seriously smile

Offline

#9 2013-07-07 20:07:41

mikho
Low End Mod
From: Hell and gore == Sweden
Registered: 2013-03-02
Posts: 1,747
Website

Re: External IP and trouble

I did it aswell, wait!? What are we talking about? big_smile

Offline

#10 2013-07-07 20:30:17

dimitrisp
ROCK & ROLL!!!!!!!
From: /dev/null
Registered: 2013-07-06
Posts: 65

Re: External IP and trouble

Haha.
The haproxy didn't do any good, I still get the same error about IP ending in 25 instead of 24. So I came to the conclusion that the shoucast yp tries to connect back to the IP that sends the request instead of the IP/Hostname specified in the config file.
I'm complaining, it still is a great deal this way. I'll make it private, or just let it complain tongue

Once again, thank you!
Dimitris


Love metal? http://www.distortionradio.gr/ | Powered by LowEndSpirit Hardware (at 50%)
GamePost.eu - New Gaming Community, with NMRiH & TF2 Servers (more to come soon)
If my posts have helped you in any way, send me some bitcoins: 1M5Vwki6qgwZKw3Q8wBQYC5cCy58UmGnM big_smile

Offline

#11 2013-07-07 20:37:52

mikho
Low End Mod
From: Hell and gore == Sweden
Registered: 2013-03-02
Posts: 1,747
Website

Re: External IP and trouble

dstip or destip : Specify the server side binding address for clients [Default = <no value>]

The above is from the shoutcast documentation (for version2), perhaps a stupid question but are you writing it with an uppercase D or lowercase?

Have you tried with dstip or only destip?

Offline

#12 2013-07-08 06:30:52

dimitrisp
ROCK & ROLL!!!!!!!
From: /dev/null
Registered: 2013-07-06
Posts: 65

Re: External IP and trouble

Well, this is not a problem (at least in my case). The result is always the same. I've tried:
- dstip, DstIP, DSTIP
- destip, DestIP, DESTIP
And shoutcast yp still sees the ip ending with 25.
Meaning there is some incompatibility between shoutcast and the way the minivps system was created.
Basically it's a standard shoutcast config, and the essential info is this:

MaxUser=30
Password=noneofyourconcern
PortBase=3304
LogFile=sc_serv.log
SrcIP=ANY
DstIP=public.ip.ending.with.24
Yport=80
NameLookups=0


Love metal? http://www.distortionradio.gr/ | Powered by LowEndSpirit Hardware (at 50%)
GamePost.eu - New Gaming Community, with NMRiH & TF2 Servers (more to come soon)
If my posts have helped you in any way, send me some bitcoins: 1M5Vwki6qgwZKw3Q8wBQYC5cCy58UmGnM big_smile

Offline

#13 2013-07-08 07:01:13

AnthonySmith
Low End Boss
From: ~/
Registered: 2013-02-13
Posts: 3,943
Website

Re: External IP and trouble

Hmm, maybe I can have a play with the iptables and fix it for you, I will have a look today.


https://upto32.com retro gaming and nostalgia forum that does not take itself to seriously smile

Offline

#14 2013-07-08 08:20:50

dimitrisp
ROCK & ROLL!!!!!!!
From: /dev/null
Registered: 2013-07-06
Posts: 65

Re: External IP and trouble

Oh well, you don't need to go through all that trouble for me! For the price I've paid I can't complain! I just wanted to make sure I didn't do anything wrong on the config, since I only get to sleep 4-5 hours per day tongue


Love metal? http://www.distortionradio.gr/ | Powered by LowEndSpirit Hardware (at 50%)
GamePost.eu - New Gaming Community, with NMRiH & TF2 Servers (more to come soon)
If my posts have helped you in any way, send me some bitcoins: 1M5Vwki6qgwZKw3Q8wBQYC5cCy58UmGnM big_smile

Offline

#15 2013-07-08 11:27:41

mikho
Low End Mod
From: Hell and gore == Sweden
Registered: 2013-03-02
Posts: 1,747
Website

Re: External IP and trouble

Shoutcast has a knowledgebase article about NAT and portforwarding (same setup as lowendspirit) so I'm leaning on a problem with shoutcast. With that I'm saying that shoutcast has a setting in their config (dstip) that are not working as it should.

Why do you hate version 2? Perhaps it's working in that version?

Offline

#16 2013-07-08 12:35:35

dimitrisp
ROCK & ROLL!!!!!!!
From: /dev/null
Registered: 2013-07-06
Posts: 65

Re: External IP and trouble

There are many reasons I don't like v2 (it seems like a total icecast2 ripoff in a way), but this is what made me really not like it: they make you create an auth key to be able to list your station to their public directory. I mean, come on, why? tongue
It takes 5 minutes to make it, but it doesn't serve any purpose, at least the way it is right now. It doesn't make sense!

Anyway, I gave it a shot with v2, setting dstip as public.ip.ending.with.24 but:

2013-07-08 15:29:16     E       msg:Error opening port 3304 because Could not bind to public.ip.ending.with.24:3304 because Cannot assign requested address
2013-07-08 15:29:16     I       msg:[MAIN] Runner shutdown

And if I put my haproxied hostname, it starts fine, but I still get

msg:[YP2] Connection attempt failed. YP2 error code is 480 (Cannot see your station/computer (URL: http://public.ip.ending.with.25:3304/mountpoint) from the Internet, disable Internet Sharing/NAT/firewall/ISP cache.)

Notice that instead of using the hostname, YP2 uses the IP the VPS uses to go out.

I'll try using port 80, and then Ill just give up! tongue

Edit: didn't work. I give up. You win shoutcast... for now! tongue

Last edited by dimitrisp (2013-07-08 12:40:18)


Love metal? http://www.distortionradio.gr/ | Powered by LowEndSpirit Hardware (at 50%)
GamePost.eu - New Gaming Community, with NMRiH & TF2 Servers (more to come soon)
If my posts have helped you in any way, send me some bitcoins: 1M5Vwki6qgwZKw3Q8wBQYC5cCy58UmGnM big_smile

Offline

Board footer

Powered by FluxBB