Parsing IP from Request.RemoteAddr

354 views
Skip to first unread message

Peter Nguyen

unread,
Feb 17, 2014, 8:55:40 AM2/17/14
to golan...@googlegroups.com
Hi,

I'm trying to parse a valid IP address from Request.RemoteAddr but was wondering if my approach is correct:


Is there any other method to parse IP addresses that I've overlooked? Seems a little bit hackish to need to use 2 different functions for it.

Volker Dobler

unread,
Feb 17, 2014, 9:25:55 AM2/17/14
to golan...@googlegroups.com
No, You really have to do it in two steps if ports may be present.

V. 
Reply all
Reply to author
Forward
0 new messages