Finding My Public IP
I want to find my public ip address with out going to whatsmyip.com My problem is; at work we have a computer in the back, internet access is blocked. It however doesn't block telnet or irc servers running on port 6667. I want to transfer files via irc to the work computer from the bot running on mine. MP3's and whatnot. One of the DCC commands argument is my public ip.
Is there a way to find it in the cmd? ipconfig gives me the privet ip for the network, but not the public.
I've tried with no success, I think I'm sending the command wrong or something.
irc.send("PRIVMSG #BotRoom :DCC SEND techb C:\Users\owner\Desktop\Insane\music.mp3")```
Is that wrong?
[This](http://irc.deware.com/common/irc/ctcpdcc.html) is what told me I need the ip address.
techb wrote: I've tried with no success, I think I'm sending the command wrong or something.
irc.send("PRIVMSG #BotRoom :DCC SEND techb C:\Users\owner\Desktop\Insane\music.mp3")```
Is that wrong?
[This](http://irc.deware.com/common/irc/ctcpdcc.html) is what told me I need the ip address.
Try backward slashes.
MoshBat wrote: http://en.wikipedia.org/wiki/Backslash Small note. Irrelevant.
They should totally switch those names. Small note: isn't irrelevant.
Alrighty, nevermind, I know what's going on. I actually looked up the code from my old IRC bot and the DCC requests are actually a lot more complicated than they seem.
markupPRIVMSG stealth- :\x01DCC SEND Filename LongIP Port filesize SomeIncrementingNumber\x01
LongIP - Your IP in long format Port - Duh Filesize - In bytes SomeIncrementingNumber - I have not the slightest clue what I was doing when I coded this, but it's a number starting at 100 that increments with every new connection
Unfortunately, I pretty much gave up mid-way through coding the DCC feature, as I really was only doing it for the fun of it (it wasn't related to the bots real purpose), so I don't really know a whole lot, but enough to say that if you have port 6667 access, just port forward that port at home and manually send everything over sockets. If you can get a IRC client at your office, I'm sure you can get a small python script.
I hope this helped, somehow >.>
It was a nice idea; but like you it was for a side project and is loosing my interest real fast.
I decided to go a different route with my IRC bot. It is something that has never been done before. I will post a write up on what I did after I document everything.
I work at Sub Way btw lol. My office is a prep table. Like I said before, they have the computer in the backed locked down. I forgot the name of the program, but I found the MD5 hashes for the firewalls login info; haven't gotten around to cracking them yet. Anyway…. Thanks for trying to help out.
@Mosh: Irrelevant == Interesting.
And here is the link to the write up. The video is best viewed full screen to see whats going on.
It made hackaday http://hackaday.com/2010/07/27/air-freshener-hacking/
techb wrote: It made hackaday http://hackaday.com/2010/07/27/air-freshener-hacking/
Very nice job dude. Congrats